1、
hlen :获取hash表的字段数量
*****************************
zset(有序集合)
127.0.0.1:6379> zadd salary 2500 xiaohong
(integer) 1
127.0.0.1:6379> zadd salary 5000 zhangsan
(integer) 1
127.0.0.1:6379> zadd salary 500 kaungshen
(integer) 1
由低到高排序:
127.0.0.1:6379> zrangebyscore salary -inf +inf
1) "kaungshen"
2) "xiaohong"
3) "zhangsan"
由高到低排序
127.0.0.1:6379> zrevrangebyscore salary +inf -inf
1) "zhangsan"
2) "xiaohong"
3) "kaungshen"