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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Roadmap "Layered caching (multi-level caching)" #13

Open
fkromer opened this issue Oct 14, 2020 · 2 comments
Open

Roadmap "Layered caching (multi-level caching)" #13

fkromer opened this issue Oct 14, 2020 · 2 comments

Comments

@fkromer
Copy link

fkromer commented Oct 14, 2020

When are you planning to add support for layered caching? Has there already been put effort into? I'd be interested in "guided" contribution 馃槒

@dgilland
Copy link
Owner

dgilland commented Oct 15, 2020

I didn't have any immediate plans to add this feature and no effort as been put into it yet.

If you're interested in adding it, then we can discuss the design details.

@fkromer
Copy link
Author

fkromer commented Oct 15, 2020

I'm using a CacheManager instance with an application specific workaround by simply passing nested dicts as values via set() like e.g. cache_manager["SomeSubCache"].set("first_level_key_a", {"a_0": ..., "a_1": ...}); cache_manager["SomeSubCache"].set("first_level_key_b", {"b_0": ..., "b_1": ...}). I get the data in a similar way. It's not convenient to work with but works for me as is. I've wrappers for setting/getting typing.NamedTuple datatypes into/from the cache. The code will be of little value for a generic solution.

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

No branches or pull requests

2 participants