Redis常用命令
Redis常用命令 Redis-Key ping flushdb flushall keys * set name zhangsan get name exists name expire name 10 ttl name move name 1 # 不常用 String set key1 v1 append key1 “hello” strlen key1 incr views decr views incrby views 10 decrby views 10 getrange key1 0 -1 setrange key1 1 xx setex key seconds value setnx key value mset k1 v1 k2 v2 k3 v3 mget k1 k2 k3 msetnx k1 v1 k4 v4...