[PR #761] [MERGED] Allow to set custom key in RedisCacheHandler #1012

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

📋 Pull Request Information

Original PR: https://github.com/spotipy-dev/spotipy/pull/761
Author: @ENT8R
Created: 12/22/2021
Status: Merged
Merged: 12/22/2021
Merged by: @stephanebruckert

Base: masterHead: patch-1


📝 Commits (3)

  • c750b45 Allow to set custom key in RedisCacheHandler
  • 3be831e Update CHANGELOG.md
  • fc45d09 Check for the existence of the key

📊 Changes

2 files changed (+8 additions, -3 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 spotipy/cache_handler.py (+7 -3)

📄 Description

I would like to use a different key than the one that is always set, so I thought it might be a good idea to allow users of the RedisCacheHandler to supply their own key and only set it to the default value of token_info if the key is not supplied as an argument.


🔄 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/761 **Author:** [@ENT8R](https://github.com/ENT8R) **Created:** 12/22/2021 **Status:** ✅ Merged **Merged:** 12/22/2021 **Merged by:** [@stephanebruckert](https://github.com/stephanebruckert) **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (3) - [`c750b45`](https://github.com/spotipy-dev/spotipy/commit/c750b45b174cc97c624bfdfce7f0ee4beebfa233) Allow to set custom key in RedisCacheHandler - [`3be831e`](https://github.com/spotipy-dev/spotipy/commit/3be831ef31bdac07a6b7ef7aa3104d052616a82f) Update CHANGELOG.md - [`fc45d09`](https://github.com/spotipy-dev/spotipy/commit/fc45d099fa02ab1788c8f4516f451628b767ae71) Check for the existence of the key ### 📊 Changes **2 files changed** (+8 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `spotipy/cache_handler.py` (+7 -3) </details> ### 📄 Description I would like to use a different key than the one that is always set, so I thought it might be a good idea to allow users of the `RedisCacheHandler` to supply their own key and only set it to the default value of `token_info` if the key is not supplied as an argument. --- <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:14 +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#1012
No description provided.