[PR #670] [MERGED] Added MemoryCacheHandler #988

Closed
opened 2026-02-28 00:03:07 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/spotipy-dev/spotipy/pull/670
Author: @Peter-Schorn
Created: 4/14/2021
Status: Merged
Merged: 4/14/2021
Merged by: @stephanebruckert

Base: masterHead: master


📝 Commits (2)

  • 0b6ede6 Added MemoryCacheHandler, a cache handler that simply stores the token info in memory as an instance attribute of this class.
  • bc7343c Fixed a bug in CacheFileHandler.__init__: The documentation says that the username will be retrieved from the environment, but it wasn't.

📊 Changes

3 files changed (+34 additions, -16 deletions)

View changed files

📝 CHANGELOG.md (+7 -1)
📝 spotipy/cache_handler.py (+25 -1)
📝 tests/unit/test_oauth.py (+2 -14)

📄 Description

MemoryCacheHandler is useful for scripts that don't need to save the token info to persistent storage. Please merge this into v3 because I'm working on some changes on that branch that rely on this change.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/spotipy-dev/spotipy/pull/670 **Author:** [@Peter-Schorn](https://github.com/Peter-Schorn) **Created:** 4/14/2021 **Status:** ✅ Merged **Merged:** 4/14/2021 **Merged by:** [@stephanebruckert](https://github.com/stephanebruckert) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`0b6ede6`](https://github.com/spotipy-dev/spotipy/commit/0b6ede68766f095b97e5d5370cf6bd6b264dc720) Added `MemoryCacheHandler`, a cache handler that simply stores the token info in memory as an instance attribute of this class. - [`bc7343c`](https://github.com/spotipy-dev/spotipy/commit/bc7343c2061ee01e039b80b07ae39609726f962c) Fixed a bug in `CacheFileHandler.__init__`: The documentation says that the username will be retrieved from the environment, but it wasn't. ### 📊 Changes **3 files changed** (+34 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+7 -1) 📝 `spotipy/cache_handler.py` (+25 -1) 📝 `tests/unit/test_oauth.py` (+2 -14) </details> ### 📄 Description `MemoryCacheHandler` is useful for scripts that don't need to save the token info to persistent storage. Please merge this into v3 because I'm working on some changes on that branch that rely on this change. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:03:07 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#988
No description provided.