async-xbox-live-api
Version:
Async library to enable you to interact with the xbox live api
24 lines (21 loc) • 528 B
TypeScript
// very partial type
declare module 'async-disk-cache' {
interface Options {
location: string;
compression: boolean;
supportBuffer: boolean;
key: string;
}
interface CacheEntry<T> {
isCached: boolean;
key?: string;
value?: T;
}
export default class Cache {
constructor(key: string, options?: Partial<Options>);
get<T>(key: string): Promise<CacheEntry<T>>;
set<T>(key: string, value: T): Promise<void>;
clear(): Promise<void>;
remove(key: string): Promise<void>;
}
}