MCPcopy Index your code
hub / github.com/redis/node-redis / hScanIterator

Method hScanIterator

packages/client/lib/client/index.ts:1677–1688  ·  view source on GitHub ↗
(
    this: RedisClientType<M, F, S, RESP, TYPE_MAPPING>,
    key: RedisArgument,
    options?: ScanCommonOptions & ScanIteratorOptions
  )

Source from the content-addressed store, hash-verified

1675 }
1676
1677 async* hScanIterator(
1678 this: RedisClientType<M, F, S, RESP, TYPE_MAPPING>,
1679 key: RedisArgument,
1680 options?: ScanCommonOptions & ScanIteratorOptions
1681 ) {
1682 let cursor = options?.cursor ?? '0';
1683 do {
1684 const reply = await this.hScan(key, cursor, options);
1685 cursor = reply.cursor;
1686 yield reply.entries;
1687 } while (cursor !== '0');
1688 }
1689
1690 async* hScanValuesIterator(
1691 this: RedisClientType<M, F, S, RESP, TYPE_MAPPING>,

Callers 1

index.spec.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected