Skip to main content
The Deno 2 Release Candidate is here
Learn more
class ProfileSnapshotService
import { ProfileSnapshotService } from "https://deno.land/x/sptaki@1.2.0/services/mod.ts";

Constructors

new
ProfileSnapshotService(jsonUtil: JsonUtil)

Properties

protected
jsonUtil: JsonUtil
protected
storedProfileSnapshots: Record<string, IAkiProfile>

Methods

clearProfileSnapshot(sessionID: string): void

Remove a stored profile by key

getProfileSnapshot(sessionID: string): IAkiProfile

Retreve a stored profile

hasProfileSnapshot(sessionID: string): boolean

Does a profile exists against the provided key

storeProfileSnapshot(sessionID: string, profile: IAkiProfile): void

Store a profile into an in-memory object