Add concept of connectors to cacheables#9
Conversation
defaults to the original memory cache but the memory cache is broken into its own class
|
Hi @bwees and sorry for getting back to you 2 years after you posted this. in fact, it's the first time im ever seeing this PR and apparently it's not a me problem. I always saw a stray PR in the "number of open PRs" badge next to the "Pull Requests" Tab, it always showed 1, but it wasn't available in the actual list of Pull Requests.
|
|
No worries! The new implementation looks excellent. Thanks! |

This PR allows a custom cache connector to replace the in-memory cache. This PR retains the default behavior of the library (in-memory cache) but allows you to specify a connector that implements
CacheConnector. This will allow users to implement databases such as Redis or other KV stores as cache storage.The in-memory cache has been broken into its own class that implements
CacheConnectorto simplify the code. This class is used by default if a connector is not specified.