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