Skip to main content
Version: 3.10

KeyConsumer

User-function used in the KeyValueStore.forEachKey method.

Callable

  • KeyConsumer(key: string, index: number, info: { size: number }): Awaitable<void>

  • Parameters

    • key: string

      Current KeyValueStore key being processed.

    • index: number

      Position of the current key in KeyValueStore.

    • info: { size: number }

      Information about the current KeyValueStore entry.

      • size: number

        Size of the value associated with the current key in bytes.

    Returns Awaitable<void>