@nebius/js-sdk - v0.2.54
    Preparing search index...

    Adds a short-lived in-memory view to one named TokenCache entry.

    Repeated ThrottledTokenCache.get calls avoid disk access until the throttle interval passes. Call ThrottledTokenCache.refresh to check the file immediately. When no valid file entry exists, ThrottledTokenCache.refresh returns undefined but keeps the previous in-memory value and its throttle timestamp.

    Indexable

    • [key: symbol]: () => unknown

      Adds a short-lived in-memory view to one named TokenCache entry.

      Repeated ThrottledTokenCache.get calls avoid disk access until the throttle interval passes. Call ThrottledTokenCache.refresh to check the file immediately. When no valid file entry exists, ThrottledTokenCache.refresh returns undefined but keeps the previous in-memory value and its throttle timestamp.

        • (): unknown
        • Returns a JSON-safe value for logs.

          Returns unknown

    Index
    $type: "nebius.sdk.ThrottledTokenCache" = 'nebius.sdk.ThrottledTokenCache'

    Contains the fully qualified runtime type name.

    • Reads the cache file immediately and returns its current valid token.

      A valid file token replaces the in-memory value and restarts the throttle interval. An absent or expired file token returns undefined without clearing the previous in-memory value or throttle timestamp.

      Returns Promise<Token | undefined>