@agorio/sdk • Docs
Class: FileSessionStorage
Implements
Constructors
new FileSessionStorage()
new FileSessionStorage(
options):FileSessionStorage
Parameters
• options: FileSessionStorageOptions
Returns
Defined in
src/session/file-storage.ts:26
Methods
delete()
delete(
sessionId):Promise<void>
Parameters
• sessionId: string
Returns
Promise<void>
Implementation of
Defined in
src/session/file-storage.ts:68
list()
list(
filter?):Promise<SessionState[]>
Parameters
• filter?
• filter.before?: Date
• filter.customerId?: string
Returns
Promise<SessionState[]>
Implementation of
Defined in
src/session/file-storage.ts:49
load()
load(
sessionId):Promise<null|SessionState>
Parameters
• sessionId: string
Returns
Promise<null | SessionState>
Implementation of
Defined in
src/session/file-storage.ts:39
save()
save(
state):Promise<void>
Parameters
• state: SessionState
Returns
Promise<void>
Implementation of
Defined in
src/session/file-storage.ts:31