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

Cache-specific functionality #349

Open
lewisjkl opened this issue Feb 13, 2020 · 0 comments
Open

Cache-specific functionality #349

lewisjkl opened this issue Feb 13, 2020 · 0 comments
Labels

Comments

@lewisjkl
Copy link
Collaborator

I know that there have been discussions in the past about what to do when it comes to features that are specific to certain cache implementations. One approach to this is to just add the extra functions into the cache implementation classes themselves (i.e. RedisCache like in #348) without any common interface added into the AbstractCache.

Another option that I can think of is adding typeclasses that represent some of these more powerful cache features. Then any cache that is capable of supporting those features would just implement those typeclasses. The advantage I see here is that then you could program to the typeclass rather than a specific cache implementation and potentially still switch cache implementations down the line. The main downside I see is that this could get messy and the overlap between cache functionality may not be as much as I am assuming here.

In any case, would love to get some preliminary thoughts about those approaches as well as other ideas for what to do moving forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant