Bitmap
127.0.0.1:6379> setbit sign 0 1 #以打卡签到为例 添加签到数据
(integer) 0
127.0.0.1:6379> setbit sign 1 0
(integer) 0
127.0.0.1:6379> setbit sign 2 0
(integer) 0
127.0.0.1:6379> setbit sign 3 1
(integer) 0
127.0.0.1:6379> setbit sign 4 1
(integer) 0
127.0.0.1:6379> setbit sign 5 0
(integer) 0
127.0.0.1:6379> setbit sign 6 0
(integer) 0
127.0.0.1:6379> getbit sign 3 #查询第三天打卡签到
(integer) 1
127.0.0.1:6379> getbit sign 2 #查询第三天打卡签到
(integer) 0
127.0.0.1:6379> BITCOUNT sign #统计打卡签到次数
(integer) 3