1、keys * (keys b*,相当于b后面匹配相当于正则的* )//查询当前系统中的所有缓存key
2、flushdb 清空所有缓存key
3、set key value,get key,设置获取缓存值
4、randomkey 返回随机的key,
5、type key//返回当前key的类型
6、exists key //判断某个缓存key是否存在
7、del key//删除某个缓存key
8、set class 0903 ex(秒) 10
9、ttl class\\检查key剩多少秒
10、append key 追加;
11、getrange key start end\\获取字符串(昨从0开始,右从-1开始)
12、incr key //int 加1,decr key //int 减一 incrby key 20,加20, decrby key 20 减 20,incrbyfloat key 0.5