layered-loader
Version:
Data loader with support for caching and fallback data sources
9 lines (8 loc) • 435 B
TypeScript
import type { GroupCache, GroupDataSource } from '../types/DataSources';
export declare class RedisExpirationTimeGroupDataSource implements GroupDataSource<number, string> {
readonly name = "RedisExpirationTimeGroupedLoader";
private readonly parentAsyncCache;
constructor(asyncCache: GroupCache<any>);
getFromGroup(key: string, group: string): Promise<number | undefined>;
getManyFromGroup(): Promise<number[]>;
}