1
0
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:
Gzy 2023-06-28 17:34:15 +08:00 committed by GitHub
parent 5de04d114e
commit b04ec626af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,7 @@ OK
```bash
> EXPIRE key 60
(integer) 1
> SETNX key 60 value # 设置值并设置过期时间
> SETEX key 60 value # 设置值并设置过期时间
OK
> TTL key
(integer) 56