sqlalchemy / sqlalchemy/dogpile.cache
Invalidate, Delete, Refresh... using a pattern
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 299
- Forks
- 50
- PR merge metrics
- No merged PRs in 30d
Description
Migrated issue, originally created by Diogo Neves (DiogoNeves)
Would be great to invalidate, delete and refresh multiple values using a pattern instead of a list of keys.
I guess this would require changes to the API.
It could be as simple as adding a .keys(pattern) method.
At the moment I've extended Redis (the backend I'm using) and overridden the _multi methods to support a pattern string and lists.
I wouldn't mind giving it a try at implementing this, what do you think?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the cache API and the Redis backend's overridden _multi methods mentioned in the issue. Define how pattern-based invalidate, delete, and refresh should work across backends, then verify that the API and supported backends handle patterns consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, redis
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100