From 968efcece8806ad5abbf1ebb8983cdd8ee8e24e4 Mon Sep 17 00:00:00 2001 From: DicTag Date: Wed, 15 Jan 2025 13:42:23 +0800 Subject: [PATCH] Update redis-springboot.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit lrem的注释有误,详见官网用法https://redis.io/docs/latest/commands/lrem/ --- docs/src/redis/redis-springboot.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/redis/redis-springboot.md b/docs/src/redis/redis-springboot.md index 15bb5c7c7..d3413d9e2 100644 --- a/docs/src/redis/redis-springboot.md +++ b/docs/src/redis/redis-springboot.md @@ -165,7 +165,7 @@ OK 沉默王三 沉默王二 沉默王二是沙比 -## 删除 index 为 0 的值 +## 删除 所有 等于“沉默王四” 的元素。(count=0移除所有,count>0从头部移除count个,count<0从尾部移除count个) > lrem user_list 0 沉默王四 1 > lrange user_list 0 -1