InMemorySessionStore constructor
InMemorySessionStore({
- bool rejectBranchingSessions = false,
Creates an in-memory store.
When rejectBranchingSessions is true, a sessionId lookup that
resolves to a branched history (more than one leaf) throws
StatusCodes.FAILED_PRECONDITION instead of returning the latest leaf.
Defaults to false; opt in (e.g. in dev) to surface accidental branching
early.
Implementation
InMemorySessionStore({this.rejectBranchingSessions = false});