zio-cache
zio-cache copied to clipboard
A ZIO native cache with a simple and compositional interface
Hi! While working with zio-cache I ran into a problem where `Key` alone does not provide enough information to compute the cached `Value`. As a motivating example let's assume that...
It would be nice to have a jitter parameter so if a number of keys is getting queried continuously, the periodic re-fetching of them spreads out a bit.
Is it possible to tweak the signature of `get` to know when the result I `get` has been calculated by my query or another request that happened to arrive before...
### Motivation In some scenarios, we might want to add a value to the cache directly without calling the lookup function. An example of such business logic is we have...
Allows defining a lookup function that takes multiple keys and looks up values for all of them as part of a single effect.
### Motivation Currently the test cases are pretty simple. More complex scenarios should be covered. Additionally tests for other platforms (namely JS and native) should also be added to make...
This will help with ZIO metrics integration for caches.