Skip to content

Cache Control - Keys #127

Answered by jodydonetti
timothyeckert asked this question in Q&A
Mar 17, 2023 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @timothyeckert and thanks for using FusionCache!

It's not possible to access all the keys in the cache, because FusionCache is based on the common IMemoryCache and IDistributedCache interfaces, so we are limited to only the methods available there.

Even more so when using a 2nd level (distributed cache, like Redis), enumerating keys is something that is typically avoided, and in some cases even completely disabled, like on Azure Redis Cache.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jodydonetti
Comment options

You must be logged in to vote
2 replies
@jodydonetti
Comment options

@bharatkumarmori
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants