From 7c07d9b8032a4d00bb7069be0c1a2011178c9387 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Wed, 6 Sep 2023 10:46:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E7=BC=93=E5=AD=98key=E5=90=AB*?= =?UTF-8?q?=E5=8F=B7=E7=9A=84=E6=88=AA=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/core/cache/lcoal.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/core/cache/lcoal.go b/lib/core/cache/lcoal.go index 06b5628f..f6f12af0 100644 --- a/lib/core/cache/lcoal.go +++ b/lib/core/cache/lcoal.go @@ -27,6 +27,7 @@ func DeleteLocal(key string) { // 获取指定前缀的所有键 func GetLocalKeys(prefix string) []string { + prefix = strings.TrimSuffix(prefix, "*") var keys []string for key := range cNoExpiration.Items() { if strings.HasPrefix(key, prefix) {