HybridCacheEntryContext.LocalSize Property

Definition

Gets or sets the size to assign to entries in the local (in-process) cache.

public:
 property Nullable<long> LocalSize { Nullable<long> get(); void set(Nullable<long> value); };
public long? LocalSize { get; set; }
member this.LocalSize : Nullable<int64> with get, set
Public Property LocalSize As Nullable(Of Long)

Property Value

Remarks

The units are determined by the underlying local cache implementation. When the local cache is an IMemoryCache configured with a size limit, this value corresponds to Size.

When null, the implementation may compute a default size (for example, from the serialized payload length).

Applies to