Update redis-data-structures-01.md
修正 SETNX 手误写成 SETEX 错误
This commit is contained in:
parent
5de04d114e
commit
b04ec626af
|
|
@ -110,7 +110,7 @@ OK
|
|||
```bash
|
||||
> EXPIRE key 60
|
||||
(integer) 1
|
||||
> SETNX key 60 value # 设置值并设置过期时间
|
||||
> SETEX key 60 value # 设置值并设置过期时间
|
||||
OK
|
||||
> TTL key
|
||||
(integer) 56
|
||||
|
|
|
|||
Loading…
Reference in New Issue