A pageable collection of keys based on the provided NamedCache<K, V>.

Type Parameters

  • K

    the key type of the named cache

  • V

    the value type of the named cache

Hierarchy

  • PagedSet<K, V, K>
    • KeySet

Constructors

Properties

Accessors

Methods

Constructors

  • Constructs a new KeySet.

    Type Parameters

    • K

    • V

    Parameters

    • namedCache: NamedCacheClient<K, V>

      the NamedCache to page through

    Returns KeySet<K, V>

Properties

[toStringTag]: string = 'KeySet'
namedCache: NamedCacheClient<K, V>

NamedCache reference to allow the manipulation of an underlying cache while pages are processed.

Accessors

  • get size(): Promise<number>
  • Inherit Doc

    Returns Promise<number>

Methods

  • Returns an async iterator for paging.

    Returns

    an async iterator for paging

    Returns PageAdvancer<unknown, unknown, BytesValue, K>

  • Inherit Doc

    Returns IterableIterator<K>

  • This is an unsupported operation.

    Returns Promise<boolean>

  • Inherit Doc

    Parameters

    • key: K

    Returns Promise<boolean>

  • Inherit Doc

    Parameters

    • key: K

    Returns Promise<boolean>