dotnetcore / dotnetcore/EasyCaching
When EnableReadDeepClone is true HashSet method Remove fails
- Dominant language
- C#
- Stars
- 2.1k
- Forks
- 336
- PR merge metrics
- No merged PRs in 30d
Description
## Description
When you store a HashSet object in MemoryCache and retrieve the object when you are trying to remove an item from the collection operations fail.
### Steps to Reproduce
1. Create a HashSet with 2 items
2. Store it in MemoryCache with EnableReadDeepClone = true
3. Retrieve it from Cache
4. Remove the 1st item
5. Item is not being removed
**Expected behavior:** .Remove() method should work as expected
**Actual behavior:** .Remove() method returns false
**Workaround:** Implement GetHashCode() of the object that is inside the HashSet
## Specifications
- Provider : InMemory (version 1.9.0)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.