Skip to content

Cache Control - Keys #127

Answered by jodydonetti
timothyeckert asked this question in Q&A
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: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jodydonetti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants