Skip to main content
Module

x/opine_sessions/mod.ts>AsyncSqliteStore

Cookie-based sessions module for the Opine web framework.
Latest
class AsyncSqliteStore
implements Store
Re-export
import { AsyncSqliteStore } from "https://deno.land/x/opine_sessions@2.1.1/mod.ts";

Constructors

new
AsyncSqliteStore(dbPath?: string)

Properties

db: WorkerSqliteDb
initialised: boolean

Methods

clear(sid: string)
delete(sid: string, key: string)
get<T>(sid: string, key: string): Promise<T | null>
getSession(sid: string): Promise<Record<string, any>>
persist(sid: string, data: Record<string, any>)
set(
sid: string,
key: string,
val: any,
)