-
Notifications
You must be signed in to change notification settings - Fork 7
Implement simple caching option #120
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
base: master
Are you sure you want to change the base?
Conversation
0391afc
to
d9ed40d
Compare
Pull Request Test Coverage Report for Build 1087
💛 - Coveralls |
db = databases.get("test") | ||
|
||
|
||
class DummyCache(object): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe simple in-memory variant in sorcery itself? are there other libs there which can plug and play with this interface?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dogpile.cache
should work ootb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool. then prolly a good idea to add to somewhere
@@ -0,0 +1,75 @@ | |||
# -*- coding: utf-8 -*- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe add docstring that this is heavily inspired by https://docs.sqlalchemy.org/en/latest/_modules/examples/dogpile_caching/caching_query.html?
Mostly from sqlalchemy dogpile caching recipe with some tweaks