Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Commit e88f669

Browse files
committed
Rename
1 parent b1c9f3c commit e88f669

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Microsoft.Extensions.Caching.Memory/MemoryCache.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public MemoryCache(IOptions<MemoryCacheOptions> optionsAccessor)
5050

5151
_clock = options.Clock ?? new SystemClock();
5252
_expirationScanFrequency = options.ExpirationScanFrequency;
53-
_maximumEntriesCount = options.MaximumEntriesCount;
53+
_maximumEntriesCount = options.EntryCountLimit;
5454
_lastExpirationScan = _clock.UtcNow;
5555
}
5656

src/Microsoft.Extensions.Caching.Memory/MemoryCacheOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class MemoryCacheOptions : IOptions<MemoryCacheOptions>
1313

1414
public TimeSpan ExpirationScanFrequency { get; set; } = TimeSpan.FromMinutes(1);
1515

16-
public int? MaximumEntriesCount { get; set; }
16+
public int? EntryCountLimit { get; set; }
1717

1818
MemoryCacheOptions IOptions<MemoryCacheOptions>.Value
1919
{

test/Microsoft.Extensions.Caching.Memory.Tests/CompactTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public void CompactWhenMaximumEntriesCountExceeded()
9090
var cache = new MemoryCache(new MemoryCacheOptions
9191
{
9292
Clock = testClock,
93-
MaximumEntriesCount = 9
93+
EntryCountLimit = 9
9494
});
9595

9696
for (var i = 0; i < 9; i++)

0 commit comments

Comments
 (0)