mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-16 18:10:13 +08:00
Update redis-data-structures-01.md
修正 SETNX 手误写成 SETEX 错误
This commit is contained in:
parent
5de04d114e
commit
b04ec626af
@ -110,7 +110,7 @@ OK
|
|||||||
```bash
|
```bash
|
||||||
> EXPIRE key 60
|
> EXPIRE key 60
|
||||||
(integer) 1
|
(integer) 1
|
||||||
> SETNX key 60 value # 设置值并设置过期时间
|
> SETEX key 60 value # 设置值并设置过期时间
|
||||||
OK
|
OK
|
||||||
> TTL key
|
> TTL key
|
||||||
(integer) 56
|
(integer) 56
|
||||||
|
Loading…
x
Reference in New Issue
Block a user