<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Botanika的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/Botanika</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; Botanika]]></copyright><item><title><![CDATA[redis 使用setbit(bitmap)计算连续登录的用户]]></title><link>https://blog.youkuaiyun.com/Botanika/article/details/100556116</link><guid>https://blog.youkuaiyun.com/Botanika/article/details/100556116</guid><author>Botanika</author><pubDate>Thu, 05 Sep 2019 13:57:24 +0800</pubDate><description><![CDATA[Redis Setbit 命令
对 key 所储存的字符串值，设置或清除指定偏移量上的位(bit)。


返回值
指定偏移量原来储存的位。


语法
redis 127.0.0.1:6379&gt; Setbit KEY_NAME OFFSET


实例
redis&gt; SETBIT bit 10086 1
(integer) 0

redis&gt; GETBIT bit 10086
(in...]]></description><category></category></item></channel></rss>