Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/allo_routing/libs/allo_caching.ts>Cache

🦕 Routing solution for Deno
Latest
class Cache
import { Cache } from "https://deno.land/x/allo_routing@v2.2.3/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.