layered-loader
Version:
Data loader with support for caching and fallback data sources
9 lines (8 loc) • 370 B
TypeScript
import type { Cache, DataSource } from '../types/DataSources';
export declare class RedisExpirationTimeDataSource implements DataSource<number, string> {
readonly name = "RedisExpirationTimeLoader";
private readonly parentAsyncCache;
constructor(asyncCache: Cache<any>);
get(key: string): Promise<number | undefined>;
getMany(): Promise<number[]>;
}