mirror of
https://github.com/xmanrui/OpenClaw-bot-review.git
synced 2026-08-14 00:47:49 +00:00
19 lines
349 B
TypeScript
19 lines
349 B
TypeScript
type ConfigCacheEntry = {
|
|
data: any;
|
|
ts: number;
|
|
};
|
|
|
|
let configCache: ConfigCacheEntry | null = null;
|
|
|
|
export function getConfigCache(): ConfigCacheEntry | null {
|
|
return configCache;
|
|
}
|
|
|
|
export function setConfigCache(entry: ConfigCacheEntry): void {
|
|
configCache = entry;
|
|
}
|
|
|
|
export function clearConfigCache(): void {
|
|
configCache = null;
|
|
}
|