FastFoodCoding

Login


Connect with one of the following accounts





Login

Please wait while we redirect...

Views: 203   



Hash

HSET colors white fffff
HSET colors black 000000
HGET colors white
HDEL colors white

List

LPUSH jobs job1
LPUSH jobs job2
RPUSH jobs job3
RPOP jobs
LPOP jobs

Set

SADD colors white
SADD colors black
SADD colors black
SMEMBERS myset

SortedSets

Takes score and sort by that


String

SET masterServer host1 EX 60 NX

MISC

FLUSHALL
FLUSHDB

Use Cases

  • Cache
  • Distributed Locking
  • Pub/Sub
  • Async communication
  • Batch processing (Jobs in queues)
  • session
  • Redis + Elasticsearch





On By