Redis
// Examples of simple redis command:
SET name "String"
GET name
EXISTS name
DEL name
EXPIRE name ${num}
SET counter 1000
INCRBY counter 55 // 1055
DECR counter //1054
MSET a 2 b 5 //Multiple Set
MGET a b //Multiple GetLast updated
// Examples of simple redis command:
SET name "String"
GET name
EXISTS name
DEL name
EXPIRE name ${num}
SET counter 1000
INCRBY counter 55 // 1055
DECR counter //1054
MSET a 2 b 5 //Multiple Set
MGET a b //Multiple GetLast updated
// Similar to JS object
HMSET user id 45 name "John"
HGET user id
HGET user name
HGETALL user //id, 45, name, John// Similar to linked list
LPUSH mylist 10
RPUSH mylist hello
LPUSH mylist there
LRANGE mylist 0 2 // there, 10, hello
LPOP mylist // thereSADD myset 1 2 3 4 5
SMEMBERS myset // 1 2 3 4 5
SADD myset 1 2 4 6 // 1 2 3 4 5 6
SISMEMBER myset 5 // 1 or yes
ZADD team 50 "Alice"
ZADD team 40 "Bob"
ZADD team 1 "Charlie"
ZRANGE team 0 2 // Charlie Bob Alice
ZRANK team "Bob" // 1