Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to utilize namespaces #1

Open
jwoertink opened this issue Nov 13, 2021 · 0 comments
Open

Ability to utilize namespaces #1

jwoertink opened this issue Nov 13, 2021 · 0 comments

Comments

@jwoertink
Copy link
Member

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:*")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant