laravel-mix-glob
Version:
Laravel mix extension that add support for globs usage with an extensive concise api. For a more natural boosted productivity and dynamic. Configure once and forget about adding the files each time.
21 lines (20 loc) • 649 B
TypeScript
import { Cache as FlatCache } from 'flat-cache';
import { IMetaData } from './types';
interface IOptions {
id?: string;
}
export declare class MetaCache {
flatCache: FlatCache;
id: string;
private _values;
constructor(options?: IOptions);
get values(): IMetaData;
syncWithCache(): this;
set<T extends keyof IMetaData>(key: T, value: IMetaData[T]): this;
save(): this;
getSessionIndex(sessionId: string): number;
addSessions(sessions: IMetaData['sessions']): this;
removeSessionsByIndexes(indexes: number[]): this;
removeSessionsByIds(sessionsIds: string[]): this;
}
export {};