LogoRobo.js
Framework

scanKeysToArray()

Function: scanKeysToArray()

function scanKeysToArray<K>(adapter, prefix): Promise<K[]>

Collect all scan results into an array.

Useful when you need all keys at once rather than streaming. Use with caution on large keysets.

Type Parameters

Type ParameterDefault type
Kstring

Parameters

ParameterTypeDescription
adapterFlashcoreAdapter<K, unknown>The adapter to scan
prefixKThe prefix to scan for

Returns

Promise<K[]>

Array of all matching keys

On this page