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 result of search() in case it's called twice. #16

Open
nm17 opened this issue Jul 22, 2020 · 1 comment
Open

Cache result of search() in case it's called twice. #16

nm17 opened this issue Jul 22, 2020 · 1 comment

Comments

@nm17
Copy link

nm17 commented Jul 22, 2020

Since the function is called on __init__ and it's result is stored in self.videos, you should return the self.videos on search() or add an optional parameter like dont_cache=False to the function.

@joetats
Copy link
Owner

joetats commented Feb 27, 2021

Ah - I'll add some flags to the to_dict() and to_json() methods to clear the property on default, and save it otherwise

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