1 write to MaximumPayloadBytes
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.cs (1)
110MaximumPayloadBytes = checked((int)_options.MaximumPayloadBytes); // for now hard-limit to 2GiB
5 references to MaximumPayloadBytes
Microsoft.Extensions.Caching.Hybrid (5)
Internal\DefaultHybridCache.L2.cs (3)
45RecyclableArrayBufferWriter<byte> writer = RecyclableArrayBufferWriter<byte>.Create(MaximumPayloadBytes); 239if (payload.Length > MaximumPayloadBytes) 255throw new InvalidOperationException($"Maximum cache length ({MaximumPayloadBytes} bytes) exceeded");
Internal\DefaultHybridCache.Serialization.cs (2)
63writer = RecyclableArrayBufferWriter<byte>.Create(MaximumPayloadBytes); // note this lifetime spans the SetL2Async 84_logger.MaximumPayloadBytesExceeded(ex, MaximumPayloadBytes);