You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set actor:001 "Cobie Smulders"
exist actor:001
get actor:001
get "actor:001"
get 'actor:001'
type actor:001
set actor:002 "Karen Gillan"
set movie:001 "Guardians of the Galaxy"
get actor:002
get movie:001
set actor:003 "Benedict \"Eggs\" Bumbbleflash"
get actor:003
set actor:003 "Benedict Cumberbatch" nx
get actor:003
set actor:003 "Benedict Cumberbatch" xx
get actor:003
KEYS actor:*
del actor:001
exist actor:001
Sets
SADD actors:oscar-winners "Cate Blanchett" "Ben Kingsley" "Mahershala Ali"
SADD movie:thor-rag:cast "Tessa Thompson" "Taika Waititi" "Cate Blanchett" "Idris Elba"
# REtrieve all OSCAr winners
SMEMBERS actors:oscar-winners
# OSCAR WINNERS IN THOR RAGNAROK
SINTER actors:oscar-winners movie:thor-rag:cast
# OSCAR WINNERS AND THE CAST OF THOR RAGNAROK
SUNION actors:oscar-winners movie:thor-rag:cast
# OSCAR WINNER NOT IN THE CAST OF THOR RAGNAROK
SDIFF actors:oscar-winners movie:thor-rag:cast
# IS "Ben Kingsley" in Thor Ragnarok
SISMEMBER movie:thor-rag:cast "Ben Kingsley"
# IS "Ben Kingsley" an OScan winner
SISMEMBER actors:oscar-winners "Ben Kingsley"
# Give me a random oscar winner
SRANDMEMBER actors:oscar-winners
Hashes
HMSET actors:001 name "Anthony Mackie" yob 1978 pob "New Orleans, LA, US"
HMSET actors:002 name "Danny Ramirez" yob 1992 pob "Chicago, IL, US"
HMSET actors:003 name "Georges St-Pierre" yob 1981 pob "Saint-Isidore, Quebec, CA"
HMGET actors:001 name
HGETALL actors:002
HEXISTS actors:001 character
HMSET actors:001 character "Falcon"
HMGETALL actors:001
HDEL actors:001 character
HSETNX actors:001 character "Captain America"
HMGETALL actors:001
HKEYS actors:001
HVALS actors:001
HSTRLEN actors:003 name
TOPK.RESERVE movies 5
TOPK.ADD movies "the departed"
TOPK.LIST movies
TOPK.ADD movies "The Seven Samurai"
TOPK.ADD movies "Bonnie and Clyde"
TOPK.ADD movies "Reservoir Dogs"
TOPK.ADD movies "Airplane!"
TOPK.ADD movies "Doctor Zhivago"
TOPK.ADD movies "The Deer Hunter"
TOPK.ADD movies "Up"
TOPK.ADD movies "Rocky"
TOPK.ADD movies "Memento"
TOPK.ADD movies "Memento"
TOPK.ADD movies "Inception"
TOPK.ADD movies "The Matrix"
TOPK.INCRBY movies "Airplane!" 2
TOPK.INCRBY movies "Inception" 1
TOPK.INCRBY movies "Rocky" 6
TOPK.INCRBY movies "The Seven Samurai" 3
TOPK.QUERY movies "Seven"
TOPK.QUERY movies "Rocky"
TOPK.COUNT "Inception"
TOPK.COUNT movies "Inception"
TOPK.COUNT movies "Seven"
TOPK.COUNT movies "Rocky"
TOPK.LIST movies