games_app/backend/dist/realtime/redis/keys.d.ts
2026-06-29 15:01:23 +02:00

42 lines
1.4 KiB
TypeScript

/** Redis key naming for Prediqo realtime (Candle Predict). */
export declare const REDIS_PREFIX = "prediqo";
export declare const redisKeys: {
readonly config: () => string;
readonly intervals: () => string;
readonly round: (intervalMinutes: number, openMs: number) => string;
readonly pools: (intervalMinutes: number, openMs: number) => string;
readonly timing: (intervalMinutes: number) => string;
readonly userRound: (userId: string, intervalMinutes: number, openMs: number) => string;
readonly candlesTail: (intervalMinutes: number) => string;
readonly betIdempotency: (key: string) => string;
readonly betStream: () => string;
readonly betResultStream: () => string;
readonly pubsubRound: (intervalMinutes: number) => string;
readonly pubsubUser: (userId: string) => string;
readonly engineLeader: () => string;
};
export type RoundCacheHash = {
id: string;
candleOpenMs: string;
candleCloseMs: string;
intervalMinutes: string;
status: string;
outcome: string;
openPrice: string;
highPrice: string;
lowPrice: string;
closePrice: string;
settledAt: string;
shortPoolPercent: string;
longPoolPercent: string;
serverNowMs: string;
secondsToBettingEnd: string;
secondsToBettingStart: string;
secondsToClose: string;
version: string;
};
export type PoolCacheHash = {
short: string;
long: string;
};
//# sourceMappingURL=keys.d.ts.map