1.这段主要是详细介绍hash的
1.创建hash的命令:hset key value val

2.获取key的值 hget key value
3.查询所有的hash信息 hgetall key
4.查询hash的长度 hlen key

5.删除hash hdel key value
6.多创建命令 hmset key value1 val1 value2 val2 value3 val3

7.hkeys 获取所有的key ,hvals 获取所有的value
8.hincrby和hincrbyfloat

9.hsetx if not 不存在,才进行存取

网友评论