“慢生活”不是懒惰,放慢速度不是拖延时间,而是让我们在生活中寻找到平衡。网站首页程序人生
workerman-redis組件-setBit
发布时间:2021-12-26 00:12:04作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
setBit对 key 所储存的字符串值,设置或清除指定偏移量上的位(bit)。返回值为0或1,是修改前的值。實例:<?phpuse Workerman\Worker;use Workerman\Redis\Client;use Workerman\C
阅读全文>>workerman-redis組件-getBit
发布时间:2021-12-25 23:52:52作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
getBit对 key 所储存的字符串值,获取指定偏移量上的位(bit)。也就是按位取啦。感覺實際使用場景比較少。實例:<?phpuse Workerman\Worker;use Workerman\Redis\Client;use Wo
阅读全文>>workerman-redis組件-strLen
发布时间:2021-12-25 23:52:23作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
strLen获取指定 key 所储存的字符串值的长度。当 key 储存的不是字符串值时,返回false。實例:<?phpuse Workerman\Worker;use Workerman\Redis\Client;use Workerman\Connect
阅读全文>>workerman-redis組件-setRange
发布时间:2021-12-25 23:39:37作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
setRange用指定的字符串覆盖给定 key 所储存的字符串值,覆盖的位置从偏移量 offset 开始。如果key不存在,则将key设置为指定字符串。如果key不是字符串类型,则返回false。 返
阅读全文>>workerman-redis組件-getRange
发布时间:2021-12-25 23:39:13作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
getRange获取存储在指定 key 中字符串的子字符串。字符串的截取范围由 start 和 end 两个偏移量决定(包括 start 和 end 在内)。如果key不存在,则返回空字符串。如果key不是
阅读全文>>