FileStore
constFileStore:object
Defined in: packages/core/src/session/index.ts:79
A directory of JSON session files.
Type Declaration
Section titled “Type Declaration”
readonlylayer: (directory,options) =>Layer<MessageSessionStore,SessionStoreError,FileSystem|Path>
Parameters
Section titled “Parameters”directory
Section titled “directory”string
options?
Section titled “options?”clock?
Section titled “clock?”() => number
Returns
Section titled “Returns”Layer<MessageSessionStore, SessionStoreError, FileSystem | Path>
readonlymake: (directory,clock) =>Effect<StrongMessageSessionStore,SessionStoreError,FileSystem|Path>
A file store with an injected clock, for deterministic tests.
Parameters
Section titled “Parameters”directory
Section titled “directory”string
clock?
Section titled “clock?”() => number
Returns
Section titled “Returns”Effect<StrongMessageSessionStore, SessionStoreError, FileSystem | Path>