Thankly SDK for JavaScript
    Preparing search index...

    Function getWithExpiry

    • Get a value from storage with expiry check

      Parameters

      • storageAdapter: StorageAdapter

        The storage adapter to use

      • key: string

        The key to retrieve

      • buffer: number

        Buffer time in ms before expiry to consider the value expired

      Returns Promise<string | null>

      The stored value or null if not found/expired