luckyframework / luckyframework/lucky_cache
Ability to utilize namespaces
Open
Nobody has claimed this yet.
- Dominant language
- Crystal
- Stars
- 8
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
I'm not sure how to do this, but it would be cool if the keys could be namespaced, and we had a way to get all of the values under a namespace..
cache.write("user:some_special_key") { user1 }
cache.write("user:some_special_key2") { user2 }
# returns 2 CacheItem records
cache.read_all("user:*")
# remove all cache under the `user` namespace.
cache.delete_all("user:*")
Contributor guide
No contributing guide indexed for this repository
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 reading the existing cache API around cache.write and the CacheItem records, then trace how cache keys are stored and queried. Clarify the intended behavior of cache.read_all("user:") and cache.delete_all("user:") before determining the scope and completion criteria for namespace support.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- crystal
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100