30 references to HybridCachePayloadParseResult
Microsoft.Extensions.Caching.Hybrid (22)
Internal\DefaultHybridCache.StampedeStateT.cs (5)
232HybridCachePayload.HybridCachePayloadParseResult parseResult = HybridCachePayload.TryParse( 237case HybridCachePayload.HybridCachePayloadParseResult.Success: 248case HybridCachePayload.HybridCachePayloadParseResult.ExpiredByEntry: 249case HybridCachePayload.HybridCachePayloadParseResult.ExpiredByWildcard: 250case HybridCachePayload.HybridCachePayloadParseResult.ExpiredByTag:
Internal\HybridCachePayload.cs (16)
178public static HybridCachePayloadParseResult TryParse(ArraySegment<byte> source, string key, TagSet knownTags, DefaultHybridCache cache, 195return HybridCachePayloadParseResult.FormatNotRecognized; 211return HybridCachePayloadParseResult.ExpiredByWildcard; 216return HybridCachePayloadParseResult.InvalidData; 223return HybridCachePayloadParseResult.InvalidData; 230return HybridCachePayloadParseResult.InvalidData; 236return HybridCachePayloadParseResult.ExpiredByEntry; 243return HybridCachePayloadParseResult.InvalidData; 250return HybridCachePayloadParseResult.InvalidData; 255return HybridCachePayloadParseResult.InvalidKey; // key must match! 262return HybridCachePayloadParseResult.InvalidData; 294return HybridCachePayloadParseResult.ExpiredByTag; 301return HybridCachePayloadParseResult.InvalidData; 322return HybridCachePayloadParseResult.Success; 324return HybridCachePayloadParseResult.FormatNotRecognized; 330return HybridCachePayloadParseResult.ParseFault;
Internal\Log.cs (1)
64internal static partial void CacheBackendDataRejected(this ILogger logger, HybridCachePayloadParseResult reason, Exception? ex);
Microsoft.Extensions.Caching.Hybrid.Tests (8)
PayloadTests.cs (8)
56var result = HybridCachePayload.TryParse(new(oversized, 0, actualLength), key, tags, cache, out var payload, out var remaining, out var flags, out var entropy, out var pendingTags, out _); 85var result = HybridCachePayload.TryParse(new(oversized, 0, actualLength), key, tags, cache, out var payload, out var remaining, out var flags, out var entropy, out var pendingTags, out _); 121var result = HybridCachePayload.TryParse(new(oversized, 0, actualLength), key, tags, cache, out var payload, out var remaining, out var flags, out var entropy, out var pendingTags, out _); 151var result = HybridCachePayload.TryParse(new(oversized, 0, actualLength), key, tags, cache, out var payload, out var remaining, out var flags, out var entropy, out var pendingTags, out _); 189var result = HybridCachePayload.TryParse(new(oversized, 0, actualLength), key, tags, cache, out var payload, out var remaining, out var flags, out var entropy, out var pendingTags, out _); 211var result = HybridCachePayload.TryParse(new(bytes), "whatever", TagSet.Empty, cache, out var payload, out var remaining, out var flags, out var entropy, out var pendingTags, out _); 238var result = HybridCachePayload.TryParse(new(oversized, 0, actualLength - 1), key, tags, cache, out var payload, out var remaining, out var flags, out var entropy, out var pendingTags, out _); 265var result = HybridCachePayload.TryParse(new(oversized, 0, actualLength + 1), key, tags, cache, out var payload, out var remaining, out var flags, out var entropy, out var pendingTags, out _);