Setu-TS
    Preparing search index...

    Function getTenantCachePrefix

    • Exported accessor that reads the cache-prefix stamped into ctx.state by the middleware. Consumers never hardcode the state key string.

      Parameters

      • ctx: { state: Map<string, unknown> }

        Must expose a state: Map<string, unknown> (satisfied by IRequestContext).

      Returns string | undefined

      The prefixed cache key, or undefined when not configured.