Skip to content

Removal of Unique Keys

Compare
Choose a tag to compare
@mhenrixon mhenrixon released this 14 Nov 00:21
· 760 commits to main since this release

Adds two ways of removing unique keys. Both of them use the same code. WARNING it will delete the keys matching that pattern.

Requirements

The reason this isn't added anywhere else yet is that it requires redis >= 2.8 if I am not mistaken. This gem might switch to that as a hard requirement in the near future.

Console

  1. bundle exec jobs console
  2. keys '*', count: 10_000
  3. del_by '*', count: 100, dry_run: false

Command Line

  • bundle exec jobs keys '*' -n 1000
  • bundle exec jobs del '*' -n 1000, --no-dry-run