File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -9,30 +9,23 @@ namespace BitFaster.Caching.Lru
99 [ DebuggerDisplay ( "{Hot}/{Warm}/{Cold}" ) ]
1010 public class EqualCapacityPartition : ICapacityPartition
1111 {
12- private readonly int hotCapacity ;
13- private readonly int warmCapacity ;
14- private readonly int coldCapacity ;
15-
1612 /// <summary>
1713 /// Initializes a new instance of the EqualCapacityPartition class with the specified total capacity.
1814 /// </summary>
1915 /// <param name="totalCapacity">The total capacity.</param>
2016 public EqualCapacityPartition ( int totalCapacity )
2117 {
22- var ( hot , warm , cold ) = ComputeQueueCapacity ( totalCapacity ) ;
23- this . hotCapacity = hot ;
24- this . warmCapacity = warm ;
25- this . coldCapacity = cold ;
18+ ( Hot , Warm , Cold ) = ComputeQueueCapacity ( totalCapacity ) ;
2619 }
2720
2821 ///<inheritdoc/>
29- public int Cold => this . coldCapacity ;
22+ public int Cold { get ; }
3023
3124 ///<inheritdoc/>
32- public int Warm => this . warmCapacity ;
25+ public int Warm { get ; }
3326
3427 ///<inheritdoc/>
35- public int Hot => this . hotCapacity ;
28+ public int Hot { get ; }
3629
3730 private static ( int hot , int warm , int cold ) ComputeQueueCapacity ( int capacity )
3831 {
You can’t perform that action at this time.
0 commit comments