Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add concept of connectors to cacheables #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bwees
Copy link

@bwees bwees commented Aug 30, 2024

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 CacheConnector to simplify the code. This class is used by default if a connector is not specified.

bwees added 2 commits August 30, 2024 11:26
defaults to the original memory cache but the memory cache is broken into its own class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant