Closed as not planned
Description
openedon Mar 28, 2017
The current design of MemoryCache is awkward due to the IMemoryCache interface where ICacheEntry CreateEntry(object key)
exists instead of a more intuitive Set(object key, object value)
. The expected usage pattern is to call Dispose()
on the ICacheEntry
to "commit" the entry to the cache but this is unintuitive as well. This proved to be an issue when attempting to implement a strategy based eviction trigger and strategy in aspnet/Caching#280. We should revisit this design and see if there are possible improvements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment