“慢生活”不是懒惰,放慢速度不是拖延时间,而是让我们在生活中寻找到平衡。网站首页程序人生
workerman-redis組件-append
发布时间:2021-12-25 23:26:59作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
append如果 key 已经存在并且是一个字符串, APPEND 命令将 value 追加到 key 原来的值的末尾,并返回字符串长度。 如果 key 不存在, APPEND 就简单地将给定 key 设为 value ,就
阅读全文>>workerman-redis組件-type
发布时间:2021-12-25 23:21:50作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
type返回 key 所储存的值的类型。返回结果为字符串, string set list zset hash none 中的一种,其中none表示key不存在。實例:<?phpuse Workerman\Worker;use Workerman\Redis
阅读全文>>workerman-redis組件-keys
发布时间:2021-12-25 23:21:22作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
keys命令用于查找所有符合给定模式 pattern 的 key 。實例:<?phpuse Workerman\Worker;use Workerman\Redis\Client;use Workerman\Connection\TcpConnection;use Workerman
阅读全文>>workerman-redis組件-expire
发布时间:2021-12-25 23:13:25作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
expire于设置 key 的过期时间,key 过期后将不再可用。单位以秒。成功返回1,key不存在返回0,发生错误返回false。實例如:<?phpuse Workerman\Worker;use Workerman\Redis\Client
阅读全文>>workerman-redis組件-renameNx
发布时间:2021-12-25 23:06:06作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
renameNx在新的 key 不存在时修改 key 的名称。實例:<?phpuse Workerman\Worker;use Workerman\Redis\Client;use Workerman\Connection\TcpConnection;use Workerman\Timer
阅读全文>>