Commands
Commands are case-insensitive, lower case is recommended!
Server
IP Filter
Key Value
Hashmap
Sorted Set
-
zset
name key score
Set the score of the key of a zset.
-
zget
name key
Get the score related to the specified key of a zset
-
zdel
name key
Delete specified key of a zset.
-
zincr
name key num
Increment the number stored at key in a zset by num.
-
zexists
name key
Verify if the specified key exists in a zset.
-
zsize
name
Return the number of pairs of a zset.
-
zlist
name_start name_end limit
List zset names in range (name_start, name_end].
-
zrlist
name_start name_end limit
List zset names in range (name_start, name_end], in reverse order.
-
zkeys
name key_start score_start score_end limit
List keys in a zset.
-
zscan
name key_start score_start score_end limit
List key-score pairs where key-score in range (key_start+score_start, score_end].
-
zrscan
name key_start score_start score_end limit
List key-score pairs of a zset, in reverse order. See method zkeys().
-
zrank
name key
Returns the rank(index) of a given key in the specified sorted set.
-
zrrank
name key
Returns the rank(index) of a given key in the specified sorted set, in reverse order.
-
zrange
name offset limit
Returns a range of key-score pairs by index range [offset, offset + limit).
-
zrrange
name offset limit
Returns a range of key-score pairs by index range [offset, offset + limit), in reverse order.
-
zclear
name
Delete all keys in a zset.
-
zcount
name score_start score_end
Returns the number of elements of the sorted set stored at the specified key which have scores in the range [score_start,score_end].
-
zsum
name score_start score_end
Returns the sum of elements of the sorted set stored at the specified key which have scores in the range [score_start,score_end].
-
zavg
name score_start score_end
Returns the average of elements of the sorted set stored at the specified key which have scores in the range [score_start,score_end].
-
zremrangebyrank
name start end
Delete the elements of the zset which have rank in the range [start,end].
-
zremrangebyscore
name start end
Delete the elements of the zset which have score in the range [start,end].
-
zpop_front
name limit
Delete
limit
elements from front of the zset.
-
zpop_back
name limit
Delete
limit
elements from back of the zset.
-
multi_zset
name key1 score1 key2 score2 ...
Set multiple key-score pairs(kvs) of a zset in one method call.
-
multi_zget
name key1 key2 ...
Get the values related to the specified multiple keys of a zset.
-
multi_zdel
name key1 key2 ...
Delete specified multiple keys of a zset.
List