标签:多个 redis学习 键值 for 存储 没有 key lan 添加元素
值的类型分为五种:
数据操作的全部命令,可以查看http://redis.cn/commands.html
set key value
SETEX key seconds value
MSET key value [key value ...]
GET key
MGET key [key ...]
INCR key
INCRBY key increment
DECR key
DECRBY key decrement
APPEND key value
STRLEN key
KEYS pattern
EXISTS key [key ...]
TYPE key
DEL key [key ...]
EXPIRE key seconds
TTL key
HSET key field value
HMSET key field value [field value ...]
HGET key field
HMGET key field [field ...]
HGETALL key
HKEYS key
HLEN key
HVALS key
HEXISTS key field
HDEL key field [field ...]
HSTRLEN key field
LPUSH key value [value ...]
RPUSH key value [value ...]
LINSERT key BEFORE|AFTER pivot value
LSET key index value
LPOP key
RPOP key
LRANGE key start stop
LTRIM key start stop
LLEN key
LINDEX key index
SADD key member [member ...]
SMEMBERS key
SCARD key
SINTER key [key ...]
SDIFF key [key ...]
SUNION key [key ...]
SISMEMBER key member
ZADD key score member [score member ...]
ZRANGE key start stop
ZCARD key
ZCOUNT key min max
ZSCORE key member
标签:多个 redis学习 键值 for 存储 没有 key lan 添加元素
原文地址:http://www.cnblogs.com/DarrenChan/p/7041128.html