Skip to content

MemoryCache: "Cannot update the item that is not yet expired." #1017

@mholzmann-medi

Description

@mholzmann-medi

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.

Metadata

Metadata

Assignees

Labels

questionFurther information is requestedtodoThings to be done in the future

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions