Skip to content

Subtract prior entry size when adding entry to cache#103931

Merged
jozkee merged 2 commits into
dotnet:mainfrom
jozkee:caching-prior-entry-capacity
Jun 28, 2024
Merged

Subtract prior entry size when adding entry to cache#103931
jozkee merged 2 commits into
dotnet:mainfrom
jozkee:caching-prior-entry-capacity

Conversation

@jozkee

@jozkee jozkee commented Jun 24, 2024

Copy link
Copy Markdown
Member

Alternative to #102420
Fixes #36039

cc @pedrobsaila

Comment thread src/libraries/Microsoft.Extensions.Caching.Memory/src/MemoryCache.cs Outdated
@jozkee jozkee merged commit 86e54c7 into dotnet:main Jun 28, 2024
@jozkee jozkee deleted the caching-prior-entry-capacity branch June 28, 2024 19:34
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2nd call to MemoryCache.Set() with the same key erases entry if cache is full

2 participants