@earth-app/collegedb
    Preparing search index...

    Function setLookup

    • Stores (or overwrites) a secondary-index value.

      Parameters

      • key: string

        Secondary identifier (e.g. an email hash or slug)

      • value: string

        Value to associate (e.g. a primary id)

      • options: LookupOptions = {}

        Namespace and KV override

      Returns Promise<void>

      If no KV store is available

      1.2.4

      await setLookup(emailHash, String(customerId));