mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #51] Abstraction of caching code #26
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mikejewell on GitHub (May 22, 2015).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/51
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 commented on GitHub (Dec 4, 2015):
I had the same problem, see #61 for my workaround
@markuman commented on GitHub (Jan 3, 2018):
redis as caching engine would be nice
@its-schmii commented on GitHub (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