《红丸出品》 http://weibo.com/u/2446082491
3 / 71
2.2.5 mset ........................................................................................................................ 24
2.2.6 msetnx .................................................................................................................... 25
2.2.7 get ........................................................................................................................... 25
2.2.8 getset ...................................................................................................................... 25
2.2.9 getrange.................................................................................................................. 26
2.2.10 mget ...................................................................................................................... 26
2.2.11 incr ........................................................................................................................ 27
2.2.12 incrby .................................................................................................................... 27
2.2.13 decr ....................................................................................................................... 27
2.2.14 decrby ................................................................................................................... 27
2.2.15 append .................................................................................................................. 28
2.2.16 strlen ..................................................................................................................... 28
2.3 hashes 类型及操作 .................................................................................................. 29
2.3.1 hset ......................................................................................................................... 29
2.3.2 hsetnx ..................................................................................................................... 29
2.3.3 hmset ...................................................................................................................... 29
2.3.4 hget ......................................................................................................................... 30
2.3.5 hmget...................................................................................................................... 30
2.3.6 hincrby .................................................................................................................... 30
2.3.7 hexists ..................................................................................................................... 30
2.3.8 hlen ......................................................................................................................... 31
2.3.9 hdel ......................................................................................................................... 31
2.3.10 hkeys ..................................................................................................................... 31
2.3.11 hvals ...................................................................................................................... 31
2.3.12 hgetall ................................................................................................................... 32
2.4 lists 类型及操作 ...................................................................................................... 32
2.4.1 lpush ....................................................................................................................... 32
2.4.2 rpush ....................................................................................................................... 33
2.4.3 linsert ...................................................................................................................... 33
2.4.4 lset .......................................................................................................................... 33