react-azure-config
Version:
🚀 The Ultimate Multi-App Configuration Library! CRITICAL BUG FIXES: Prefixed environment keys no longer sent to Azure. Complete architectural redesign with bulletproof fallback system. Enterprise-grade Azure integration and monorepo support.
38 lines • 1.11 kB
TypeScript
import type { CacheConfig } from './types';
export declare class ConfigurationCache {
private memoryCache;
private config;
constructor(config?: Partial<CacheConfig>);
get<T = unknown>(key: string): T | null;
set<T = unknown>(key: string, value: T, source?: string): void;
clear(): void;
private clearLocalStorageCache;
private cleanExpiredEntries;
private cleanExpiredLocalStorageEntries;
private evictOldestEntriesIfNeeded;
private isLocalStorageAvailable;
getStats(): {
memory: {
size: number;
maxSize: number;
ttl: number;
entries: {
key: string;
source: string;
expires: number;
isExpired: boolean;
}[];
};
localStorage: {
totalKeys: number;
storageUsed: number;
} | {
error: string;
} | null;
config: CacheConfig;
};
getAllKeys(): string[];
delete(key: string): boolean;
getConfig(): CacheConfig;
}
//# sourceMappingURL=cache.d.ts.map