Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
class Session
implements PageSession
import { Session } from "https://deno.land/x/frugal@0.9.6/src/server/session/Session.ts";

Constructors

new
Session(data?: SessionData, id?: string)

Properties

readonly
_data
readonly
_id
readonly
_shouldBePersisted

Methods

delete(key: string): void
get<T = unknown>(key: string): T | undefined
has(key: string): boolean
set<T = unknown>(key: string, value: T): void