This repository was archived by the owner on Dec 14, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
src/Microsoft.Extensions.Caching.Memory
test/Microsoft.Extensions.Caching.Memory.Tests Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 ++ )
You can’t perform that action at this time.
0 commit comments