Single-value multi-value
- sadd / smembers / sismember
scard Get the number of elements inside the collection
- srem key value to delete elements in the collection
- srandmember key an integer -> a few random number
- spop key randomly pop
- smove key1 key2 key1 in a value -> key1 in the role is to assign a value key2
Mathematical collections
- 1, difference (sdiff). Rather than items in a first set in which a set back inside any
- 2, the intersection (sinter)
- 3, and the set (SUNION)
Reproduced in: https: //www.jianshu.com/p/55e5512bc451