Skip to main content
Go to Latest
interface ResponseCacheStore
import { type ResponseCacheStore } from "https://deno.land/x/alosaur@v0.37.0/src/hooks/response-cache/response-cache-store.interface.ts";

Methods

create<T>(hash: string, payload: ResponseCacheResult<T>): Promise<void>

Create hash in store

delete(hash: string): Promise<void>

Delete cache by hash

get<T>(hash: string): Promise<ResponseCacheResult<T>>

Get object value by hash