Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b04ec62

Browse files
authored
Update redis-data-structures-01.md
修正 SETNX 手误写成 SETEX 错误
1 parent 5de04d1 commit b04ec62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/database/redis/redis-data-structures-01.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ OK
110110
```bash
111111
> EXPIRE key 60
112112
(integer) 1
113-
> SETNX key 60 value # 设置值并设置过期时间
113+
> SETEX key 60 value # 设置值并设置过期时间
114114
OK
115115
> TTL key
116116
(integer) 56

0 commit comments

Comments
 (0)