games_app/backend/dist/domain/candle-predict/read/roundCache.js
2026-06-29 15:01:23 +02:00

12 lines
579 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadCachedRound = loadCachedRound;
const config_1 = require("../../../config");
const roundCache_1 = require("../../../realtime/redis/roundCache");
/** Load player-visible round fields from Redis when cache is enabled. */
async function loadCachedRound(intervalMinutes, openMs) {
if (!config_1.config.redis.enabled || !config_1.config.redis.roundCacheEnabled)
return null;
return (0, roundCache_1.getRoundCache)(intervalMinutes, openMs);
}
//# sourceMappingURL=roundCache.js.map