import type { MemoryCacheDelegate, MemoryCachePolicyInterface, } from '../types/type'; /** * * Free policy is a policy that doesn't care about anything, just cache it */ export class FreePolicy implements MemoryCachePolicyInterface { constructor() { this.onAccess.bind(this); this.onEvict.bind(this); } onAccess(_cache: Map, _key: string) {} onEvict(_cache: Map, _delegate?: MemoryCacheDelegate) {} // get dataSource(): { [key in string]: number } { return {}; } set dataSource(_data: { [key in string]: number }) {} }