“慢生活”不是懒惰,放慢速度不是拖延时间,而是让我们在生活中寻找到平衡。网站首页程序人生
workerman-redis組件-move
发布时间:2021-12-25 22:58:46作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
move将当前数据库的 key 移动到给定的数据库 db 当中。實例:<?phpuse Workerman\Worker;use Workerman\Redis\Client;use Workerman\Connection\TcpConnection;use Workerma
阅读全文>>workerman-redis組件-randomKey
发布时间:2021-12-25 22:52:27作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
randomKey从当前数据库中随机返回一个 key。實例如:<?phpuse Workerman\Worker;use Workerman\Redis\Client;use Workerman\Connection\TcpConnection;use Workerman\Timer;
阅读全文>>workerman-redis組件-getSet
发布时间:2021-12-25 22:45:25作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
getSet用于设置指定 key 的值,并返回 key 的旧值。實例:<?phpuse Workerman\Worker;use Workerman\Redis\Client;use Workerman\Connection\TcpConnection;use Workerman\Tim
阅读全文>>workerman-redis組件-mGet
发布时间:2021-12-25 22:40:33作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
mGet返回所有(一个或多个)给定 key 的值。 如果给定的 key 里面,有某个 key 不存在,那么这个 key 返回NULL。實例:<?phpuse Workerman\Worker;use Workerman\Redis\Client;use
阅读全文>>workerman-redis組件-incrByFloat
发布时间:2021-12-25 22:32:31作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
为 key 中所储存的值加上指定的浮点数增量值。如果 key 不存在,那么 INCRBYFLOAT 会先将 key 的值设为 0 ,再执行加法操作。如果值包含错误的类型,或字符串类型的值不能表示为
阅读全文>>