Dataset handling commands in Redis

We have seen commands used by the client program to either set data or get data in Redis but there are some useful commands that are needed to handle Redis as a datastore. These commands help in maintaining Redis in the production environment and are usually the domain of the Redis administration. Since these commands have an impact on the data stored in Redis, one should be careful in executing them. Following are some of the commands:

  • FLUSHDB: This command deletes all the keys (and their held data) in the chosen database. As we have seen, in Redis we can create a database which is more like a SILO wherein we can store data in a segregated manner (more like separation of concern). This command never fails.
  • FLUSHALL ...

Get Learning Redis now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.