-
-
Save Yogendra0Sharma/3f83aa825470ee989b28a5314bd5a4a6 to your computer and use it in GitHub Desktop.
Redis Cheatsheet - Basic Commands You Must Know
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Redis Cheatsheet | |
| # All the commands you need to know | |
| SET key value # set value in key | |
| SETNX key value # set if not exist value in key | |
| GET key # get value in key | |
| INCR key # increment value in key | |
| DEL key # delete key | |
| EXPIRE key 120 # key will be deleted in 120 seconds | |
| TTL key # returns the number of seconds until a key is deleted | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment