O'Reilly logo

Learning Redis by Vinoo Das

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required