-
-
Notifications
You must be signed in to change notification settings - Fork 462
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 support? #1140
Comments
Hi @frankdilo, can you provide more information about your reason for wanting to cache |
I would say to manually cache yourself through a dict: from time import time
cache_dict = {"timestamp": 0, "data": None}
if int(time())-cache_dict["timestamp"] >= 60 * 60 * 1: # 1 hour, modify 1 to modify hours
cache_dict["data"] = reddit.subreddit("TEST").top("day") |
Closing due to inactivity. Please include an answer to the above question if you think this is still worthwhile. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Description
Hi, I saw that you remove caching support in 2016 and that now just some properties are cached via the
cachedproperty
decorator. I was interested in caching the results I get via thesubreddit.top("day")
method.What's your suggested way to do that?
System Information
p.s. Love what you are doing with this library, thanks for all your work ❤️
The text was updated successfully, but these errors were encountered: