quasqui
Version:
The meta-framework suite designed from scratch for frontend-focused modern web development.
12 lines (10 loc) • 325 B
text/typescript
import { PageCachesInterface } from '../type';
import { LRUCaches } from './lru';
export async function createPageCaches(
max: number,
): Promise<PageCachesInterface> {
const constructorOptions = { max };
const cacheInstance = new LRUCaches(constructorOptions);
await cacheInstance.init();
return cacheInstance;
}