Member Junction
    Preparing search index...

    Function UserCacheKeySegment

    • Returns the cache key segment that identifies the user an entry was loaded for, or null when there is no user. A null result means the data must not be cached at all, because any key built without a user would be shared by every caller.

      Parameters

      • userID: string | null | undefined

        the ID of the user the data was loaded for

      Returns string | null

      u:<normalized user ID>, or null when userID is empty

      UserCacheKeySegment('A1B2C3D4-E5F6-7890-ABCD-EF1234567890') // 'u:a1b2c3d4-e5f6-7890-abcd-ef1234567890'
      UserCacheKeySegment(undefined) // null