Skip to content

FileStore

const FileStore: object

Defined in: packages/core/src/session/index.ts:79

A directory of JSON session files.

readonly layer: (directory, options) => Layer<MessageSessionStore, SessionStoreError, FileSystem | Path>

string

() => number

Layer<MessageSessionStore, SessionStoreError, FileSystem | Path>

readonly make: (directory, clock) => Effect<StrongMessageSessionStore, SessionStoreError, FileSystem | Path>

A file store with an injected clock, for deterministic tests.

string

() => number

Effect<StrongMessageSessionStore, SessionStoreError, FileSystem | Path>