@agorio/sdkDocs


Class: FileSessionStorage

Implements

Constructors

new FileSessionStorage()

new FileSessionStorage(options): FileSessionStorage

Parameters

options: FileSessionStorageOptions

Returns

FileSessionStorage

Defined in

src/session/file-storage.ts:26

Methods

delete()

delete(sessionId): Promise<void>

Parameters

sessionId: string

Returns

Promise<void>

Implementation of

SessionStorage.delete

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

SessionStorage.list

Defined in

src/session/file-storage.ts:49


load()

load(sessionId): Promise<null | SessionState>

Parameters

sessionId: string

Returns

Promise<null | SessionState>

Implementation of

SessionStorage.load

Defined in

src/session/file-storage.ts:39


save()

save(state): Promise<void>

Parameters

state: SessionState

Returns

Promise<void>

Implementation of

SessionStorage.save

Defined in

src/session/file-storage.ts:31