InMemoryEventStore
In-memory implementation of EventStore for testing and development purposes. Stores event streams in memory using thread-safe collections.
Author
ahoo wang
Functions
Appends an event stream to the in-memory storage. Validates version conflicts and duplicate request IDs.
Checks whether the request ID already exists for the specified aggregate.
Loads the last domain event stream for the specified aggregate.
Loads event streams for the specified aggregate within the version range. Returns copies of the stored event streams.
Loads event streams for the specified aggregate within the event time range. Returns copies of the stored event streams.
Scans for aggregate IDs within the specified named aggregate, starting after the given ID. Returns a limited number of aggregate IDs in lexicographical order.