API
MemoryCacheOptions.SizeLimit
Sets a logical cache size budget; callers must assign compatible entry sizes.
Formal Syntax & Structure
csharp syntaxcsharp
new MemoryCacheOptions { SizeLimit = 8 }Working Example
Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.new MemoryCacheOptions { SizeLimit = 8 }