列表(list)是用来存储多个有序的字符串,
列表中的每个字符串成为元素(element),
一个列表最多可以存储2^32-1个元素.
它可以充当栈和队列
(可以理解为有长度限制的链表)


不乱
hset $key $field $value
hsetnx
:当不存在$field
时设置hget $key $field
$field
hdel $key $field [$field ...]
$field
个数hlen $key
hmset $key $field $value [$field $value ...]
hmget $key $field [$field ...]
$field
是否存在hexists $key $field
$field
hkeys $key
$value
hvals $key
$field-$value
hgetall $key
Redis
,只需要部分数据的话推荐使用hmget
,一定要获得全部的话,也可以使用hscan
来遍历hincrby $key $field
hincrbyfloat $key $field
$value
的长度(Redis3.2以上)hstrlen $key $field
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
1 | $ hexo new "My New Post" |
More info: Writing
1 | $ hexo server |
More info: Server
1 | $ hexo generate |
More info: Generating
1 | $ hexo deploy |
More info: Deployment