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

x/oak_nest/modules/cache/src/cache.interface.ts>ICacheStore

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