-
- Downloads
Allow reactive caching to be used in services
Add support for defining a reactive_cache_worker_finder function that will be used by the reactive_caching_worker to generate/initialize the calling object. This allows reactive caching to work with Services where the object cannot be obtained from DB but a new object can be initialized.
Showing
- app/models/concerns/reactive_caching.rb 39 additions, 0 deletionsapp/models/concerns/reactive_caching.rb
- app/workers/reactive_caching_worker.rb 4 additions, 3 deletionsapp/workers/reactive_caching_worker.rb
- changelogs/unreleased/58375-reactive-caching-changes.yml 5 additions, 0 deletionschangelogs/unreleased/58375-reactive-caching-changes.yml
- spec/models/concerns/reactive_caching_spec.rb 44 additions, 0 deletionsspec/models/concerns/reactive_caching_spec.rb
Please register or sign in to comment