Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/allo_controllers/libs/allo_caching.ts>Cache

🦕 Simple "convention over configuration" Controllers solution for Deno.
Latest
class Cache
import { Cache } from "https://deno.land/x/allo_controllers@v1.1.5/libs/allo_caching.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.