Skip to content

Commit

Permalink
set CompactionPercentage to 0.95 for IActionDescriptorChangeProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusz96 committed Nov 14, 2024
1 parent 0bbf22a commit 023b133
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/UriGeneration/Internal/MethodCacheAccessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public MethodCacheAccessor(IOptions<UriGenerationOptions> globalOptionsAccessor)

Cache = new MemoryCache(new MemoryCacheOptions
{
SizeLimit = globalOptions.MethodCacheSizeLimit ?? 500
SizeLimit = globalOptions.MethodCacheSizeLimit ?? 500,
CompactionPercentage = 0.95
});
}

Expand Down

0 comments on commit 023b133

Please sign in to comment.