Memory usage with multiple named caches? #577
-
|
Hi, Currently investigating using FusionCache, it's looking good so far but I do have a question. I'm converting a system with multiple cache instances backed by multiple Redis servers/databases. I haven't decided if I'm going to convert "multiple cache instances" to some variant of "named caches" or not yet. That'll obviously influence whether I keep the multiple Redis servers/databases or not. As I have been reading the documentation, it seemed like having FusionCache own its MemoryCache made the most sense. Additionally, if there are multiple FusionCaches (with different CacheKeyPrefixes) pointing to a single Redis database, are there performance considerations here vs just using a single FusionCache instance and then prefixing the keys? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hi @oconnor0
In general, I would say yes.
It works with any combination of L1/L2, dedicated or isolated, because... (see below)
... the
No, in that case each is an isolated You can use a single
You can still set a
Regarding performance: no, no differences. If instead you just set a Hope this helps, let me know. |
Beta Was this translation helpful? Give feedback.
Hi @oconnor0
In general, I would say yes.
It works with any combination of L1/L2, dedicated or isolated, because... (see below)
... the
Clear()…