Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface ICacheStore
import { type ICacheStore } from "https://deno.land/x/jwfetch@v2.2.1/src/types.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