Function get_cache_key

Source
pub fn get_cache_key(ctx: &Ctx, method: &str, uri: &Uri) -> CacheKey
Expand description

Generates a cache key from the request method, URI and state context. The key includes an optional namespace and prefix if configured in the state.

ยงArguments

  • ctx - The Ctx context containing cache configuration
  • method - The HTTP method as a string
  • uri - The request URI

Returns: A CacheKey combining the namespace, prefix (if any), method and URI