Libraries v5.2.0
    Preparing search index...

    Function serializeTag

    • Serialises the result of a cache-tag selector callback into a CacheTagDefinition that can be stored on endpoint metadata and forwarded to the client middleware.

      Each value in descriptors must be a PropertyDescriptor — its getValue closure is wrapped in a CacheTagPropertyAccessor.

      Parameters

      • name: string
      • descriptors: Record<string, unknown>

      Returns CacheTagDefinition

      If any value is not a valid property descriptor.