Skip to content

Commit

Permalink
docs: 更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
dunwu committed Dec 12, 2023
1 parent d79478c commit 8d60cec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Redis 提供了 `BITPOS key bitValue [start] [end]`指令,返回数据表示 B

在默认情况下,命令将检测整个位图,用户可以通过可选的 `start` 参数和 `end` 参数指定要检测的范围。所以我们可以通过执行这条命令来获取 userID = 100 在 2022 年 6 月份**首次打卡**日期:

```apache
```shell
BITPOS uid:sign:100:202206 1
```

Expand All @@ -138,7 +138,7 @@ SETBIT login_status 10086 1

第二步,检查该用户是否登陆,返回值 1 表示已登录。

```apache
```shell
GETBIT login_status 10086
```

Expand Down

0 comments on commit 8d60cec

Please sign in to comment.