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
Fix sphinx builds to show API reference #390
Comments
|
ah alright — thanks! |
Btw— just wish to add that it would be great if the docs http://aiocache.readthedocs.io/en/latest/index.html contains all the docs from your docstring — right now I find myself reading the source to look at available arguments. |
Oh, apparently sphinx build is not working properly. Will fix that. Thanks for reporting. PS: going to reuse this issue to track this |
argaen
changed the title
How to use @cache decorator with dynamic keys
Fix sphinx builds to show API reference
Mar 23, 2018
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I use the
@cache
decorator, the key needs to be set on the decorator, but I have many caches where I would like to set attl
of 60 seconds but are in fact database queries. How would I go about setting those keys — isttl
an option forcache.set
? And if it is, how do I know when it the data is stale? Does it auto-delete itself such that when I callcache.get
it will return None?Thanks in advance!
The text was updated successfully, but these errors were encountered: