sign-in data structure on Redis cache (redis中的签到数据结构)
- redis >= v3.2.0
- count the number of consecutive sign-in (统计连续签到数)
- count the number of sign-in (统计签到总数)
- do sign in (进行签到)
- get sign-in states map (获取签到状态字典)
- get first sign-in date (获取首次签到日期)
- check if the specified date is signed (检查指定时间是否签到)
- custom sign-in intervals and cycles (自定义签到时间间隔和周期)
Counting forward from the last check-in until the first non-sign-in is encountered, the total number of check-ins is calculated, which is the number of consecutive sign-in days (从最后一次签到开始向前统计,直到遇到第一次未签到为止,计算总的签到次数,就是连续签到天数)