How to easily purge redis data ?


When setting up some redis-based architecture, I sometimes had to purge the data stored in my redis server.

With the Command Line Interface, it can be done very easily.
The commands to use are :

  • KEYS : Find all keys matching the given pattern
  • LLEN : Returns the length of the given key
  • DEL : Deletes the given key

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© Crocoware technical blog