标签:str 排序 ttl sre sde example ecif 结果 name
set key value
子主题 1
SET server:name "fido"
GET server:name => "fido"
EXISTS server:name => 1
EXISTS server:blabla => 0
SET connections 10
INCR connections => 11
INCR connections => 12
DEL connections
INCR connections => 1
It is also possible to increment the number contained inside a key by a specific amount:
INCRBY connections 100 => 101
And there are similar commands in order to decrement the value of the key.
DECR connections => 100
DECRBY connections 10 => 90
EXPIRE key 100
TTL key
PERSIST key
让这个计时结束
INCR key
DECR key
不能简单的get key ?value=value+1 \set key value
lpush friend "yanhao"
执行顺序是
所以结果是 4 3 2 1
lrange friend 0 -1
example
lrange friend 0 10
lrange friend -3 -1
lset friend 0 "yanhao"
lpop friend
llen
sadd setname "yanhao"
return 0
return 1
srem friend "yanhao"
srandmeber friend 2
spop
sunion set1 set2
Zrange fruit 0 1
hmset user:37 name "yanhao" age 17
hincrby user:37 name 2
hdel
XMind: ZEN - Trial Version
标签:str 排序 ttl sre sde example ecif 结果 name
原文地址:https://www.cnblogs.com/yahoo17/p/12488659.html