Libraries
    Preparing search index...

    Function computeCacheKey

    • Computes a deterministic cache key from a tag definition and live request data.

      • Simple tags (no properties) produce just the tag name.
      • Tags with properties produce name:key1=val1,key2=val2 where keys are sorted alphabetically for determinism.

      Properties whose getValue returns success: false are skipped (their value is not included in the key).

      Parameters

      • tag: CacheTagDefinition
      • root: {
            body: unknown;
            headers: Record<string, string>;
            params: Record<string, unknown>;
            query: Record<string, unknown>;
        }

      Returns string