feat(uidScoreStore): increase redis timeout for uid-score keys from 3h to 24h

This commit is contained in:
kyuuseiryuu 2026-03-03 17:50:42 +09:00
parent 7b66b30309
commit da35e0f623

View File

@ -2,7 +2,7 @@ import { redis, xcxApi } from '../utils/server';
const getKey = (uid: string) => `my-kaiqiuwang:uid-score:${uid}`; const getKey = (uid: string) => `my-kaiqiuwang:uid-score:${uid}`;
const TIMEOUT = 60 * 60 * 3; // 3H; const TIMEOUT = 60 * 60 * 24; // 24h;
export const getUidScore = async (uids: string[]): Promise<Record<string, string>> => { export const getUidScore = async (uids: string[]): Promise<Record<string, string>> => {
const jobs = uids.map(async uid => { const jobs = uids.map(async uid => {