Sourcing::Plugin::StateCache::Memory
In-memory implementation of the StateCache interface. Suitable for testing and development.
Overview
This class implements Sourcing::Plugin::StateCache using in-memory hash storage. Projection state is cached with version tracking for fast recovery.
Notes
- State is stored in memory and lost when the process exits
- Supports custom serialization via the projection's
data-to-storemethod - For production, implement your own StateCache using Redis, Memcached, or another cache store
See Also
- Sourcing::Plugin::StateCache — the abstract interface
- Sourcing::Plugin::Memory — combined backward-compatible implementation
- Writing a Plugin Guide — how to implement your own plugin