diff --git a/src/libraries/Microsoft.Extensions.Caching.Memory/src/MemoryCacheOptions.cs b/src/libraries/Microsoft.Extensions.Caching.Memory/src/MemoryCacheOptions.cs index 7401c97d04ae8..a6117b07beaad 100644 --- a/src/libraries/Microsoft.Extensions.Caching.Memory/src/MemoryCacheOptions.cs +++ b/src/libraries/Microsoft.Extensions.Caching.Memory/src/MemoryCacheOptions.cs @@ -35,6 +35,12 @@ public class MemoryCacheOptions : IOptions /// /// Gets or sets the maximum size of the cache. /// + /// + /// The units are arbitrary. Users specify the size of every entry they add to the cache. + /// If no size is specified, the entry has no size and the size limit is ignored for that entry. + /// For more information, see + /// Use SetSize, Size, and SizeLimit to limit cache size. + /// public long? SizeLimit { get => _sizeLimit < 0 ? null : _sizeLimit;