luckyframework / luckyframework/lucky_cache

Ability to utilize namespaces

Open
#1 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.