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

x/alosaur/src/hooks/response-cache/mod.ts>ResponseCacheStore

Alosaur - Deno web framework with many decorators
Go to Latest
interface ResponseCacheStore
Re-export
import { type ResponseCacheStore } from "https://deno.land/x/alosaur@v0.35.2/src/hooks/response-cache/mod.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