From 1a856acd3f2cf9b7278088a00abdca8f9264e545 Mon Sep 17 00:00:00 2001 From: Mary Smiley <71322561+bothyouandme@users.noreply.github.com> Date: Sat, 16 Mar 2024 10:08:59 +0800 Subject: [PATCH] fix: rename correctly --- model/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/cache.go b/model/cache.go index 7b9f053..1dbbb39 100644 --- a/model/cache.go +++ b/model/cache.go @@ -197,7 +197,7 @@ func CacheUpdateUserRefreshTimeStamp(id int, timestamp int64) error { if !common.RedisEnabled { return nil } - err := common.RedisSet(fmt.Sprintf("user_stamp:%d", id), fmt.Sprintf("%d", timestamp), time.Duration(UserId2QuotaCacheSeconds)*time.Second) + err := common.RedisSet(fmt.Sprintf("user_stamp:%d", id), fmt.Sprintf("%d", timestamp), time.Duration(UserId2timeCacheSeconds)*time.Second) return err }