From 5616186be76ef7da0505bc0e650ccd040184bc65 Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 12 Mar 2024 15:51:49 +0300 Subject: [PATCH] cache-fix --- server/memorystore/providers/redis/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/memorystore/providers/redis/store.go b/server/memorystore/providers/redis/store.go index 440fd7d..5dc8e88 100644 --- a/server/memorystore/providers/redis/store.go +++ b/server/memorystore/providers/redis/store.go @@ -228,7 +228,7 @@ type AuthorProfile struct { // GetUserAppDataFromRedis retrieves user profile and follows from Redis, combines them into a JSON format, // and assigns the JSON string to the provided user's ID. func (c *provider) GetUserAppDataFromRedis(userId string) (string, error) { - authorProfileString, err := c.store.Get(c.ctx, fmt.Sprintf(`user:%s:author`, userId)).Result() + authorProfileString, err := c.store.Get(c.ctx, fmt.Sprintf(`user:%s`, userId)).Result() if err != nil { return "", err }