Skip to content

Instantly share code, notes, and snippets.

@PrakadAlpha
Created April 6, 2020 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PrakadAlpha/866c5a3f101772c5fc3163ba39147247 to your computer and use it in GitHub Desktop.
Save PrakadAlpha/866c5a3f101772c5fc3163ba39147247 to your computer and use it in GitHub Desktop.
Redis Commands::
- hmset key vals..
- hgetall key
- lpush key val
- lrange key 0 -1
- sadd key val
- smembers key
- sismember key val
- zadd key score val
- zrange key 0 -1 WITHSCORES
- zrevrange key 0 -1
- incr key => To increament the val
- exists key
- expire key secs
- set key val EX secs
- ttl key => check the secs left to expire
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment