Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface SessionStorage
import { type SessionStorage } from "https://deno.land/x/frugal@0.9.0/src/server/session/SessionStorage.ts";

Methods

create(
headers: Headers,
expires: number | undefined,
): Promise<string> | string
get(headers: Headers, id: string): Promise<SessionData | undefined> | SessionData | undefined
update(
headers: Headers,
id: string,
expires?: number | undefined,
): Promise<void> | void
delete(headers: Headers, id: string): Promise<void> | void