From b04ec626afe41dad89c355541f58d3c8c197adc0 Mon Sep 17 00:00:00 2001 From: Gzy <670453367@qq.com> Date: Wed, 28 Jun 2023 17:34:15 +0800 Subject: [PATCH] Update redis-data-structures-01.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正 SETNX 手误写成 SETEX 错误 --- docs/database/redis/redis-data-structures-01.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/database/redis/redis-data-structures-01.md b/docs/database/redis/redis-data-structures-01.md index a8e0e1d7..9a9ec231 100644 --- a/docs/database/redis/redis-data-structures-01.md +++ b/docs/database/redis/redis-data-structures-01.md @@ -110,7 +110,7 @@ OK ```bash > EXPIRE key 60 (integer) 1 -> SETNX key 60 value # 设置值并设置过期时间 +> SETEX key 60 value # 设置值并设置过期时间 OK > TTL key (integer) 56