Skip to main content
Module

x/alosaur/security.ts>SessionStore

Alosaur - Deno web framework with many decorators
Very Popular
Go to Latest
interface SessionStore
Re-export
import { type SessionStore } from "https://deno.land/x/alosaur@v0.37.0/security.ts";

Store for sessions

Methods

init(): Promise<void>

Initialize this store on start application

exist(sid: string): Promise<boolean>

Check exist SessionId in store

create(sid: string): Promise<void>

Create SessionId in store

delete(sid: string): Promise<void>

Delete Session from store

get(sid: string): Promise<any>

Get object value by Session

setValue(
sid: string,
key: string,
value: any,
): Promise<void>
getValue(sid: string, key: string): Promise<any>

Returns value by key in store

clear(): Promise<void>

Clear all store