Redis Key-Value/Set-Get/Update Key/Delete/Rename

Setting and getting a key in redis

Delete key in redis

  • Delete all keys using command flushall
  • Delete all keys in a key-space using command flushdb
  • Deleting all keys asynchronously
    • unlink key1 key2 key3

Check if a key exists

Renaming a key

Renaming a key

Overrding a keyname

Rename with check if key exist

How find type of a key

Leave a Comment