class DefaultCacheAdapter
implements ICacheAdapter
import { DefaultCacheAdapter } from "https://deno.land/x/harmony@v2.8.0/src/cache/mod.ts";
Default Cache Adapter for in-memory caching.
Properties
data: Map<string, Collection<string, unknown>>
Methods
array<T>(cacheName: string): T[] | undefined
delete(cacheName: string, ...keys: string[]): boolean
deleteCache(cacheName: string): boolean
get<T>(cacheName: string, key: string): T | undefined
keys(cacheName: string): string[] | undefined
set<T>(): void
cacheName: string,
key: string,
value: T,
expire?: number,
size<T>(cacheName: string, filter?: (payload: T) => boolean): number | undefined