Skip to main content
Module

x/allo_caching/mod.ts>Cache

🦕 Simple cache for Deno.
Latest
class Cache
import { Cache } from "https://deno.land/x/allo_caching@v1.2.0/mod.ts";

Methods

has(key: string): boolean

Check if value exists in cache.

load<E extends LoadEntryType<T>>(...args: E): E extends LoadAndGenerateEntryType<T> ? T : T | undefined
remove(key: string): void

Remove value from cache.

save(
key: string,
value: T,
dependencies?: DependenciesType,
): void

Save value to cache by key.