Tuesday, December 2, 2014

How to delete multiple keys in Redis

At the command prompt:

#redis-cli KEYS "some-prefix*" | xargs redis-cli DEL

where "some-prefix" is the key prefix you want to delete.

No comments:

Post a Comment