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

Abstraction of caching code #51

Closed
mikejewell opened this issue May 22, 2015 · 3 comments · Fixed by #625
Closed

Abstraction of caching code #51

mikejewell opened this issue May 22, 2015 · 3 comments · Fixed by #625

Comments

@mikejewell
Copy link

I'm using spotipy on Heroku as a Slack bot - which works awesomely, but I've had to store the cached token on S3. I've extended SpotifyOAuth and overridden get_cached_token and _save_token_info to do this, but it'd be useful if it was possible to do this without extensio?. This would also allow for storing the token in a DB rather than in a file.

Maybe the simplest approach could be load_cached_token and save_cached_token methods, which can be overridden to cater for different storage approaches?

@arska
Copy link
Contributor

arska commented Dec 4, 2015

I had the same problem, see #61 for my workaround

@markuman
Copy link

markuman commented Jan 3, 2018

redis as caching engine would be nice

@its-schmii
Copy link

its-schmii commented Nov 20, 2020

Has there been any update on this so it is possible to use a different matter of saving sessions but file system?
Cannot seem to find any, but I might be blind / not understand spotipys oauth class well enough yet

@stephanebruckert stephanebruckert linked a pull request Dec 16, 2020 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants