rill.wheel.caching-repository
Defines a repository that takes a cache for its aggregates.
Calling rill.wheel.repository/update on this repository will still call the backing event-store to retrieve any new events not already applied to the cached aggregate - this ensures that after calling update the aggregate is as up-to-date as possible.
caching-repository
(caching-repository event-store cache)(caching-repository event-store)Construct a new caching repository backed by a rill event-store and a clojure.core.cache cache. By default a least-recently-used cache of 20000 items is used.