From 2032cec7158336344c30675191414b0bbda7d006 Mon Sep 17 00:00:00 2001 From: kyuuseiryuu Date: Tue, 10 Mar 2026 11:23:58 +0900 Subject: [PATCH] fix(xcxApi): change redis cache key --- src/services/xcxApi.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/xcxApi.ts b/src/services/xcxApi.ts index f452371..c3e29a5 100644 --- a/src/services/xcxApi.ts +++ b/src/services/xcxApi.ts @@ -34,11 +34,11 @@ export class XCXAPI { } async getAdvProfile(uid: string) { - const cacheProfile = await redis.get(`my-kaiqiuwang-profile:${uid}`); + const cacheProfile = await redis.get(`my-kaiqiuwang:profile:${uid}`); if (!cacheProfile) { const url = `/api/User/adv_profile?uid=${uid}`; const profile = await this.#fetch(url); - await redis.setex(`my-kaiqiuwang-profile:${uid}`, 60 * 10, JSON.stringify(profile)); + await redis.setex(`my-kaiqiuwang:profile:${uid}`, 60 * 10, JSON.stringify(profile)); return profile; } return JSON.parse(cacheProfile);