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

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

Refer to nestjs to realize some common functions for Deno
Go to Latest
class LocalStore
implements ICacheStore
import { LocalStore } from "https://deno.land/x/oak_nest@v2.0.0/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>