Closed loganlinn closed 8 years ago
@loganlinn I dont like the interface but do like the approach
@scjackson Updated to support evicting a bunch of values from LRU when limit is reached
Design looks good. I like how we can build the LRU cache using the BasicCache.
As far as implementation, see my comment regarding false positive cache hits.
@loganlinn this LGTM. What do you want to do with this in terms of merging and my PR? Thoughts @jordangarcia?
Introduce a functional caching abstraction. The purpose is to provide extensible API with abstractions that are composable. Includes implementations for basic cache strategy (current) and an LRU cache (which wraps BasicCache).
A custom caching strategy can be injected via Reactor constructor.
All existing caching behavior remains the same (for now).
Tangential to #208