From 6ddec9b66cc646e9e35d3719a69abd92a0fb168c Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Tue, 18 Oct 2022 10:18:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B8=85=E7=90=86=E7=9A=84se?= =?UTF-8?q?ssion=20key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/user/model_session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/user/model_session.go b/modules/user/model_session.go index c4f74c030..84841e605 100644 --- a/modules/user/model_session.go +++ b/modules/user/model_session.go @@ -56,7 +56,7 @@ func (this *ModelSession) setUserSession(uid string, session comm.IUserSession) // 启动时清理session func (this *ModelSession) clean(key string) { - keys, err := this.Redis.Keys(fmt.Sprintf("session:%s-", key)) + keys, err := this.Redis.Keys(fmt.Sprintf("session:%s-%s_*", comm.RDS_SESSION, key)) if err != nil { log.Errorf("redis keys err:%v", err) return