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

Request: Barrel.Current.GetAllKeys() #47

Closed
c-lamont opened this issue Dec 18, 2018 · 3 comments
Closed

Request: Barrel.Current.GetAllKeys() #47

c-lamont opened this issue Dec 18, 2018 · 3 comments

Comments

@c-lamont
Copy link

First, is it possible to get all the keys that are stored in the cache?

When having large lists which needs paging, I cache the pages with a key and append the page number on the end. For example $"{MyListCache}{PageNumber}";

However when I want to refresh the pages, I want to remove all the keys which include the text MyListCache.

Therefor I would like to get all the keys, determine if they start with my MyListCache key then remove them.

@SkyeHoefling
Copy link
Contributor

@jamesmontemagno I'm going to submit a Pull Request for this. I already have a solution for SQLite and it is a pretty simple change.

@jamesmontemagno
Copy link
Owner

Do we also want to have a way of getting only expired and non-expired keys?

jamesmontemagno added a commit that referenced this issue Dec 28, 2018
@jamesmontemagno
Copy link
Owner

Will be in 1.1.0!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants