@freedomofpress/webcat
    Preparing search index...

    Function CacheKey

    • Constructs a cache key from a primary string key and a set of attributes, enabling arbitrary cache partitioning.

      Type Parameters

      • T extends { [index: string]: { toString(): string } }

        A string-indexed object type for cache attributes.

      Parameters

      • key: string
      • attrs: T

      Returns CacheKey<T>