redis-loader
Advanced tools
@@ -1,2 +0,1 @@ | ||
| /// <reference types="node" /> | ||
| import { ReadStream, IReadableStreamOptions } from 'bluestream'; | ||
@@ -22,5 +21,4 @@ import { RedisLoader } from './redis-loader'; | ||
| constructor({ redis, command, key, match, count, ...opts }: ScanStreamConstructorOptions); | ||
| [Symbol.asyncIterator](): AsyncIterableIterator<(string | Buffer)[]>; | ||
| _read(): Promise<void>; | ||
| } | ||
| export {}; |
+0
-10
@@ -13,3 +13,2 @@ "use strict"; | ||
| const bluestream_1 = require("bluestream"); | ||
| const scan_iterable_1 = require("./scan-iterable"); | ||
| // Bluestream based scan streams | ||
@@ -27,11 +26,2 @@ class ScanStream extends bluestream_1.ReadStream { | ||
| } | ||
| [Symbol.asyncIterator]() { | ||
| return scan_iterable_1.scanIterable({ | ||
| redis: this._redis, | ||
| command: this._command, | ||
| key: this._key, | ||
| match: this._match, | ||
| count: this._count | ||
| }); | ||
| } | ||
| async _read() { | ||
@@ -38,0 +28,0 @@ const { _key, _match, _count } = this; |
+1
-1
| { | ||
| "name": "redis-loader", | ||
| "version": "6.1.0", | ||
| "version": "6.1.1", | ||
| "description": "An io-redis like object that batches queries with dataloader", | ||
@@ -5,0 +5,0 @@ "author": "Tristan Siegel <tristan.siegel@bustle.com>", |
42368
-0.96%790
-1.5%