I use the MemoryCache implementation and have problems in a multi-threaded environment.
When I call a Query() method with the same cacheKey from different threads, I get a "Cannot update the item that is not yet expired." exception. Why can't I update a cached item when it is not expired yet?
Does this mean that I can't use the caching within a multi-threaded environment?
Thanks.
I use the MemoryCache implementation and have problems in a multi-threaded environment.
When I call a Query() method with the same cacheKey from different threads, I get a "Cannot update the item that is not yet expired." exception. Why can't I update a cached item when it is not expired yet?
Does this mean that I can't use the caching within a multi-threaded environment?
Thanks.