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.
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 event-store)
(caching-repository event-store cache)
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.
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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close