SortedSet
Added: Zadd key score1 member1 score2 member2 ...
Zad Mysort Laosong Zhangsan
Obtained: Zscore Key member
Zscore Mysort Laosong
Count Members Zcard key
Zcard Mysort
Delete zrem key Member1[member2 Member3 ...]
Zrem Mysort Zhangsan
Range Query Zrange key start end [Withscores]
Zrange Mysort 0-1 Withscores
Find eligible elements in order from start to finish
Zrevrange key start stop [Withscores]
Zrevange Key Mysort 0-1 withscores
Set
Add Sadd key [value1 value2]
Sadd MySet 1 2 3
Get Smembers Key
Smembers MySet
Delete Srem key membres [members1 Member2]
Srem MySet
List
Add Lpush key value1 value2 on both ends
Rpush Key value1 value2
Get Lrange key Start end
Lrange MyList 0-1
Delete Lpop key
Rpop Key
Get number Llen key
General Operations Keys
View All Key:keys *
Remove the pinned Key:del key
Determine if key exists: Exists key
Rename: Rename key Newkey
View the type of the specified key (there are only five types of results): Type key
Redis Common Type Data operations