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

x/deno_nest/modules/cache/src/cache.store.ts>LocalStore

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
class LocalStore
implements ICacheStore
import { LocalStore } from "https://deno.land/x/deno_nest@v3.7.1/modules/cache/src/cache.store.ts";

Constructors

new
LocalStore()

Properties

timeoutMap: Map<string, number>

Methods

clear(): void | Promise<void>
delete(key: string)
get(key: string)
has(key: string): boolean | Promise<boolean>
set(
key: string,
value: any,
options?: { ttl: number; },
)
size(): number | Promise<number>