SwrCacheKey class
SwrCacheKey class
Section titled “SwrCacheKey class”Utilities for normalizing and constructing SWR cache keys.
public static class SwrCacheKeyPublic Members
Section titled “Public Members”| name | description |
|---|---|
| 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. |
See Also
Section titled “See Also”- namespace Swr.Net.Keys
- SwrCacheKey.cs