www.ChinaDBA.net 中国 DBA 超级论坛
3
2.3 hashes 类型及操作 ..................................................................................................... 27
2.3.1 hset ......................................................................................................................... 28
2.3.2 hsetnx ..................................................................................................................... 28
2.3.3 hmset ..................................................................................................................... 28
2.3.4 hget ........................................................................................................................ 28
2.3.5 hmget ..................................................................................................................... 29
2.3.6 hincrby.................................................................................................................... 29
2.3.7 hexists ..................................................................................................................... 29
2.3.8 hlen ........................................................................................................................ 29
2.3.9 hdel ........................................................................................................................ 30
2.3.10 hkeys..................................................................................................................... 30
2.3.11 hvals ..................................................................................................................... 30
2.3.12 hgetall ................................................................................................................... 30
2.4 lists 类型及操作 ......................................................................................................... 31
2.4.1 lpush ....................................................................................................................... 31
2.4.2 rpush ...................................................................................................................... 31
2.4.3 linsert ..................................................................................................................... 32
2.4.4 lset .......................................................................................................................... 32
2.5.5 lrem ........................................................................................................................ 33
2.4.6 ltrim ........................................................................................................................ 34
2.4.7 lpop ........................................................................................................................ 34
2.4.8 rpop ........................................................................................................................ 35
2.4.9 rpoplpush ............................................................................................................... 35
2.4.10 lindex .................................................................................................................... 35
2.4.11 llen ........................................................................................................................ 36
2.5 sets 类型及操作 ......................................................................................................... 36
2.5.1 sadd ........................................................................................................................ 36
2.5.2 srem........................................................................................................................ 37
2.5.3 spop ........................................................................................................................ 37
2.5.4 sdiff ......................................................................................................................... 37
2.5.5 sdiffstore ................................................................................................................ 38
2.5.6 sinter ...................................................................................................................... 38
2.5.7 sinterstore .............................................................................................................. 39
2.5.8 sunion ..................................................................................................................... 39
2.5.9 sunionstore............................................................................................................. 39
2.5.10 smove ................................................................................................................... 40
2.5.11 scard ..................................................................................................................... 40
2.5.12 sismember ............................................................................................................ 40
2.5.13 srandmember ....................................................................................................... 41
2.6 sorted sets 类型及操作 .............................................................................................. 41
2.6.1 zadd ........................................................................................................................ 41
2.6.2 zrem........................................................................................................................ 42
2.6.3 zincrby .................................................................................................................... 42
2.6.4 zrank ....................................................................................................................... 43
- 1
- 2
- 3
- 4
- 5
- 6
前往页