Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs about units for SizeLimit #107101

Merged
merged 3 commits into from
Aug 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ public class MemoryCacheOptions : IOptions<MemoryCacheOptions>
/// <summary>
/// Gets or sets the maximum size of the cache.
/// </summary>
/// <remarks>
/// 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
/// <see href="https://learn.microsoft.com/aspnet/core/performance/caching/memory#use-setsize-size-and-sizelimit-to-limit-cache-size">Use SetSize, Size, and SizeLimit to limit cache size</see>.
/// </remarks>
public long? SizeLimit
{
get => _sizeLimit < 0 ? null : _sizeLimit;
Expand Down
Loading