Skip to content

SwrCacheKey class

Utilities for normalizing and constructing SWR cache keys.

public static class SwrCacheKey
namedescription
static From(…)Constructs a composite cache key from a URL and additional context parts. Parts are joined with a :: separator.
static Normalize(…)Normalizes a URL cache key by sorting query string parameters alphabetically. Ensures /api/data?b=2&a=1 and /api/data?a=1&b=2 resolve to the same cache entry.