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

x/deno_nest/modules/cache/mod.ts>ICacheStore

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
interface ICacheStore
Re-export
import { type ICacheStore } from "https://deno.land/x/deno_nest@v3.4.0/modules/cache/mod.ts";

Methods

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