You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is a bug or a misunderstanding, but when storing only locally, why is the data being serialized? I'd assume I could store any sort of object (interfaces, classes, etc) in a local, memory cache.
Reproduction Steps
My factory function returns a Task of an interface (IBloomFilter in this case). I'm passing the HybridCacheEntryFlags.DisableDistributedCache flag into the cache method as follows:
Description
I'm not sure if this is a bug or a misunderstanding, but when storing only locally, why is the data being serialized? I'd assume I could store any sort of object (interfaces, classes, etc) in a local, memory cache.
Reproduction Steps
My factory function returns a Task of an interface (IBloomFilter in this case). I'm passing the
HybridCacheEntryFlags.DisableDistributedCache
flag into the cache method as follows:return
hybridCache.GetOrCreate("BloomFilter", factory, HybridCacheEntryFlags.DisableDistributedCache)
Expected behavior
The object wouldn't go through serialization when caching locally in memory.
Actual behavior
An exception is thrown:
System.NotSupportedException: Deserialization of interface or abstract types is not supported. Type 'BloomFilter.IBloomFilter'
Regression?
No response
Known Workarounds
No response
Configuration
.NET 9, HybridCache 9.2.0-preview1.25105.6
Other information
No response
The text was updated successfully, but these errors were encountered: