Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/entropy/src/http/session.class.ts>Session

The core module of Entropy framework for Deno.
Latest
class Session
import { Session } from "https://deno.land/x/entropy@1.0.0-beta.17/src/http/session.class.ts";

Constructors

new
Session(id?: string)

Properties

private
readonly
configurator
private
optional
kv: Deno.Kv
private
kvStorageKey: string[]

Methods

private
serialize(key?: string | string[]): Promise<Record<string, unknown>>
all(): Promise<Record<string, unknown>>
decrement(
key: string | string[],
by?,
defaultValue?: number,
): Promise<number>
delete(key: string | string[]): Promise<void>
deleteAll(key: string | string[]): Promise<void>
destroy(): Promise<void>
flash(key: string, value: unknown): Promise<void>
flashed<TValue = unknown>(key: string): Promise<TValue | undefined>
get<TValue>(key: string | string[]): Promise<TValue | undefined>
has(key: string | string[]): Promise<boolean>
increment(
key: string | string[],
by?,
defaultValue?: number,
): Promise<number>
save(): Promise<void>
set(key: string | string[], value: unknown): Promise<void>
setup(): Promise<void>