(
this: RedisClientType<M, F, S, RESP, TYPE_MAPPING>,
key: RedisArgument,
options?: ScanCommonOptions & ScanIteratorOptions
)
| 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>, |