@valkey/valkey-glide 1.3.5-rc11 → 1.3.5-rc13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -11
- package/build-ts/BaseClient.d.ts +4 -9
- package/build-ts/BaseClient.js +251 -229
- package/build-ts/Batch.d.ts +5 -5
- package/build-ts/Batch.js +219 -220
- package/build-ts/Commands.d.ts +1 -2
- package/build-ts/Commands.js +4 -5
- package/build-ts/GlideClient.d.ts +1 -3
- package/build-ts/GlideClient.js +53 -54
- package/build-ts/GlideClusterClient.d.ts +1 -4
- package/build-ts/GlideClusterClient.js +52 -54
- package/build-ts/Logger.js +3 -3
- package/build-ts/OpenTelemetry.d.ts +87 -0
- package/build-ts/OpenTelemetry.js +117 -0
- package/build-ts/ProtobufMessage.d.ts +12 -81
- package/build-ts/ProtobufMessage.js +42 -177
- package/build-ts/index.d.ts +2 -2
- package/build-ts/index.js +2 -25
- package/build-ts/native.d.ts +66 -0
- package/build-ts/native.js +6 -0
- package/build-ts/server-modules/GlideFt.d.ts +1 -4
- package/build-ts/server-modules/GlideFt.js +10 -11
- package/build-ts/server-modules/GlideFtOptions.d.ts +1 -2
- package/build-ts/server-modules/GlideJson.d.ts +1 -3
- package/build-ts/server-modules/GlideJson.js +2 -2
- package/package.json +7 -7
package/build-ts/Commands.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
|
|
3
3
|
*/
|
|
4
|
-
import { GlideString, HashDataType, ObjectType } from "
|
|
5
|
-
import { SingleNodeRoute } from "./GlideClusterClient";
|
|
4
|
+
import { GlideString, HashDataType, ObjectType, SingleNodeRoute } from ".";
|
|
6
5
|
/**
|
|
7
6
|
* @test
|
|
8
7
|
*/
|
package/build-ts/Commands.js
CHANGED
|
@@ -217,15 +217,14 @@ exports.createScriptExists = createScriptExists;
|
|
|
217
217
|
exports.createScriptFlush = createScriptFlush;
|
|
218
218
|
exports.createScriptKill = createScriptKill;
|
|
219
219
|
const long_1 = __importDefault(require("long"));
|
|
220
|
-
const
|
|
221
|
-
const BaseClient_1 = require("./BaseClient");
|
|
220
|
+
const _1 = require(".");
|
|
222
221
|
const ProtobufMessage_1 = require("../build-ts/ProtobufMessage");
|
|
223
222
|
var RequestType = ProtobufMessage_1.command_request.RequestType;
|
|
224
223
|
function isLargeCommand(args) {
|
|
225
224
|
let lenSum = 0;
|
|
226
225
|
for (const arg of args) {
|
|
227
226
|
lenSum += arg.length;
|
|
228
|
-
if (lenSum >=
|
|
227
|
+
if (lenSum >= _1.MAX_REQUEST_ARGS_LEN) {
|
|
229
228
|
return true;
|
|
230
229
|
}
|
|
231
230
|
}
|
|
@@ -268,7 +267,7 @@ function createCommand(requestType, args) {
|
|
|
268
267
|
const argsBytes = toBuffersArray(args);
|
|
269
268
|
if (isLargeCommand(args)) {
|
|
270
269
|
// pass as a pointer
|
|
271
|
-
const pointerArr = (0,
|
|
270
|
+
const pointerArr = (0, _1.createLeakedStringVec)(argsBytes);
|
|
272
271
|
const pointer = new long_1.default(pointerArr[0], pointerArr[1]);
|
|
273
272
|
singleCommand.argsVecPointer = pointer;
|
|
274
273
|
}
|
|
@@ -1904,7 +1903,7 @@ var FlushMode;
|
|
|
1904
1903
|
*/
|
|
1905
1904
|
function convertKeysAndEntries(record) {
|
|
1906
1905
|
if (!Array.isArray(record)) {
|
|
1907
|
-
return (0,
|
|
1906
|
+
return (0, _1.convertRecordToGlideRecord)(record);
|
|
1908
1907
|
}
|
|
1909
1908
|
return record;
|
|
1910
1909
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
|
|
3
3
|
*/
|
|
4
|
-
import { AdvancedBaseClientConfiguration, BaseClient, BaseClientConfiguration, DecoderOption, GlideReturnType, GlideString, PubSubMsg } from "
|
|
5
|
-
import { Batch } from "./Batch";
|
|
6
|
-
import { BatchOptions, FlushMode, FunctionListOptions, FunctionListResponse, FunctionRestorePolicy, FunctionStatsFullResponse, InfoOptions, LolwutOptions, ScanOptions } from "./Commands";
|
|
4
|
+
import { AdvancedBaseClientConfiguration, BaseClient, BaseClientConfiguration, Batch, BatchOptions, DecoderOption, FlushMode, FunctionListOptions, FunctionListResponse, FunctionRestorePolicy, FunctionStatsFullResponse, GlideReturnType, GlideString, InfoOptions, LolwutOptions, PubSubMsg, ScanOptions } from ".";
|
|
7
5
|
export declare namespace GlideClientConfiguration {
|
|
8
6
|
/**
|
|
9
7
|
* Enum representing pubsub subscription modes.
|
package/build-ts/GlideClient.js
CHANGED
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.GlideClient = exports.GlideClientConfiguration = void 0;
|
|
7
|
-
const
|
|
8
|
-
const Commands_1 = require("./Commands");
|
|
7
|
+
const _1 = require(".");
|
|
9
8
|
/* eslint-disable-next-line @typescript-eslint/no-namespace */
|
|
10
9
|
var GlideClientConfiguration;
|
|
11
10
|
(function (GlideClientConfiguration) {
|
|
@@ -31,7 +30,7 @@ var GlideClientConfiguration;
|
|
|
31
30
|
*
|
|
32
31
|
* @see For full documentation refer to {@link https://github.com/valkey-io/valkey-glide/wiki/NodeJS-wrapper#standalone | Valkey Glide Wiki}.
|
|
33
32
|
*/
|
|
34
|
-
class GlideClient extends
|
|
33
|
+
class GlideClient extends _1.BaseClient {
|
|
35
34
|
/**
|
|
36
35
|
* @internal
|
|
37
36
|
*/
|
|
@@ -171,7 +170,7 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
171
170
|
* ```
|
|
172
171
|
*/
|
|
173
172
|
async customCommand(args, options) {
|
|
174
|
-
return this.createWritePromise((0,
|
|
173
|
+
return this.createWritePromise((0, _1.createCustomCommand)(args), options);
|
|
175
174
|
}
|
|
176
175
|
/**
|
|
177
176
|
* Pings the server.
|
|
@@ -200,7 +199,7 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
200
199
|
* ```
|
|
201
200
|
*/
|
|
202
201
|
async ping(options) {
|
|
203
|
-
return this.createWritePromise((0,
|
|
202
|
+
return this.createWritePromise((0, _1.createPing)(options?.message), options);
|
|
204
203
|
}
|
|
205
204
|
/**
|
|
206
205
|
* Gets information and statistics about the server.
|
|
@@ -221,8 +220,8 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
221
220
|
* ```
|
|
222
221
|
*/
|
|
223
222
|
async info(sections) {
|
|
224
|
-
return this.createWritePromise((0,
|
|
225
|
-
decoder:
|
|
223
|
+
return this.createWritePromise((0, _1.createInfo)(sections), {
|
|
224
|
+
decoder: _1.Decoder.String,
|
|
226
225
|
});
|
|
227
226
|
}
|
|
228
227
|
/**
|
|
@@ -241,8 +240,8 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
241
240
|
* ```
|
|
242
241
|
*/
|
|
243
242
|
async select(index) {
|
|
244
|
-
return this.createWritePromise((0,
|
|
245
|
-
decoder:
|
|
243
|
+
return this.createWritePromise((0, _1.createSelect)(index), {
|
|
244
|
+
decoder: _1.Decoder.String,
|
|
246
245
|
});
|
|
247
246
|
}
|
|
248
247
|
/**
|
|
@@ -261,7 +260,7 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
261
260
|
* ```
|
|
262
261
|
*/
|
|
263
262
|
async clientGetName(options) {
|
|
264
|
-
return this.createWritePromise((0,
|
|
263
|
+
return this.createWritePromise((0, _1.createClientGetName)(), options);
|
|
265
264
|
}
|
|
266
265
|
/**
|
|
267
266
|
* Rewrites the configuration file with the current configuration.
|
|
@@ -278,8 +277,8 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
278
277
|
* ```
|
|
279
278
|
*/
|
|
280
279
|
async configRewrite() {
|
|
281
|
-
return this.createWritePromise((0,
|
|
282
|
-
decoder:
|
|
280
|
+
return this.createWritePromise((0, _1.createConfigRewrite)(), {
|
|
281
|
+
decoder: _1.Decoder.String,
|
|
283
282
|
});
|
|
284
283
|
}
|
|
285
284
|
/**
|
|
@@ -297,8 +296,8 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
297
296
|
* ```
|
|
298
297
|
*/
|
|
299
298
|
async configResetStat() {
|
|
300
|
-
return this.createWritePromise((0,
|
|
301
|
-
decoder:
|
|
299
|
+
return this.createWritePromise((0, _1.createConfigResetStat)(), {
|
|
300
|
+
decoder: _1.Decoder.String,
|
|
302
301
|
});
|
|
303
302
|
}
|
|
304
303
|
/**
|
|
@@ -315,7 +314,7 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
315
314
|
* ```
|
|
316
315
|
*/
|
|
317
316
|
async clientId() {
|
|
318
|
-
return this.createWritePromise((0,
|
|
317
|
+
return this.createWritePromise((0, _1.createClientId)());
|
|
319
318
|
}
|
|
320
319
|
/**
|
|
321
320
|
* Reads the configuration parameters of the running server.
|
|
@@ -336,7 +335,7 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
336
335
|
* ```
|
|
337
336
|
*/
|
|
338
337
|
async configGet(parameters, options) {
|
|
339
|
-
return this.createWritePromise((0,
|
|
338
|
+
return this.createWritePromise((0, _1.createConfigGet)(parameters), options).then(_1.convertGlideRecordToRecord);
|
|
340
339
|
}
|
|
341
340
|
/**
|
|
342
341
|
* Sets configuration parameters to the specified values.
|
|
@@ -354,8 +353,8 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
354
353
|
* ```
|
|
355
354
|
*/
|
|
356
355
|
async configSet(parameters) {
|
|
357
|
-
return this.createWritePromise((0,
|
|
358
|
-
decoder:
|
|
356
|
+
return this.createWritePromise((0, _1.createConfigSet)(parameters), {
|
|
357
|
+
decoder: _1.Decoder.String,
|
|
359
358
|
});
|
|
360
359
|
}
|
|
361
360
|
/**
|
|
@@ -375,7 +374,7 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
375
374
|
* ```
|
|
376
375
|
*/
|
|
377
376
|
async echo(message, options) {
|
|
378
|
-
return this.createWritePromise((0,
|
|
377
|
+
return this.createWritePromise((0, _1.createEcho)(message), options);
|
|
379
378
|
}
|
|
380
379
|
/**
|
|
381
380
|
* Returns the server time.
|
|
@@ -392,8 +391,8 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
392
391
|
* ```
|
|
393
392
|
*/
|
|
394
393
|
async time() {
|
|
395
|
-
return this.createWritePromise((0,
|
|
396
|
-
decoder:
|
|
394
|
+
return this.createWritePromise((0, _1.createTime)(), {
|
|
395
|
+
decoder: _1.Decoder.String,
|
|
397
396
|
});
|
|
398
397
|
}
|
|
399
398
|
/**
|
|
@@ -429,7 +428,7 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
429
428
|
* ```
|
|
430
429
|
*/
|
|
431
430
|
async copy(source, destination, options) {
|
|
432
|
-
return this.createWritePromise((0,
|
|
431
|
+
return this.createWritePromise((0, _1.createCopy)(source, destination, options));
|
|
433
432
|
}
|
|
434
433
|
/**
|
|
435
434
|
* Move `key` from the currently selected database to the database specified by `dbIndex`.
|
|
@@ -448,7 +447,7 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
448
447
|
* ```
|
|
449
448
|
*/
|
|
450
449
|
async move(key, dbIndex) {
|
|
451
|
-
return this.createWritePromise((0,
|
|
450
|
+
return this.createWritePromise((0, _1.createMove)(key, dbIndex));
|
|
452
451
|
}
|
|
453
452
|
/**
|
|
454
453
|
* Displays a piece of generative computer art and the server version.
|
|
@@ -465,8 +464,8 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
465
464
|
* ```
|
|
466
465
|
*/
|
|
467
466
|
async lolwut(options) {
|
|
468
|
-
return this.createWritePromise((0,
|
|
469
|
-
decoder:
|
|
467
|
+
return this.createWritePromise((0, _1.createLolwut)(options), {
|
|
468
|
+
decoder: _1.Decoder.String,
|
|
470
469
|
});
|
|
471
470
|
}
|
|
472
471
|
/**
|
|
@@ -485,8 +484,8 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
485
484
|
* ```
|
|
486
485
|
*/
|
|
487
486
|
async functionDelete(libraryCode) {
|
|
488
|
-
return this.createWritePromise((0,
|
|
489
|
-
decoder:
|
|
487
|
+
return this.createWritePromise((0, _1.createFunctionDelete)(libraryCode), {
|
|
488
|
+
decoder: _1.Decoder.String,
|
|
490
489
|
});
|
|
491
490
|
}
|
|
492
491
|
/**
|
|
@@ -510,7 +509,7 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
510
509
|
* ```
|
|
511
510
|
*/
|
|
512
511
|
async functionLoad(libraryCode, options) {
|
|
513
|
-
return this.createWritePromise((0,
|
|
512
|
+
return this.createWritePromise((0, _1.createFunctionLoad)(libraryCode, options?.replace), options);
|
|
514
513
|
}
|
|
515
514
|
/**
|
|
516
515
|
* Deletes all function libraries.
|
|
@@ -528,8 +527,8 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
528
527
|
* ```
|
|
529
528
|
*/
|
|
530
529
|
async functionFlush(mode) {
|
|
531
|
-
return this.createWritePromise((0,
|
|
532
|
-
decoder:
|
|
530
|
+
return this.createWritePromise((0, _1.createFunctionFlush)(mode), {
|
|
531
|
+
decoder: _1.Decoder.String,
|
|
533
532
|
});
|
|
534
533
|
}
|
|
535
534
|
/**
|
|
@@ -561,7 +560,7 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
561
560
|
* ```
|
|
562
561
|
*/
|
|
563
562
|
async functionList(options) {
|
|
564
|
-
return this.createWritePromise((0,
|
|
563
|
+
return this.createWritePromise((0, _1.createFunctionList)(options), options).then((res) => res.map(_1.convertGlideRecordToRecord));
|
|
565
564
|
}
|
|
566
565
|
/**
|
|
567
566
|
* Returns information about the function that's currently running and information about the
|
|
@@ -609,7 +608,7 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
609
608
|
* ```
|
|
610
609
|
*/
|
|
611
610
|
async functionStats(options) {
|
|
612
|
-
return this.createWritePromise((0,
|
|
611
|
+
return this.createWritePromise((0, _1.createFunctionStats)(), options).then((res) => (0, _1.convertGlideRecordToRecord)(res));
|
|
613
612
|
}
|
|
614
613
|
/**
|
|
615
614
|
* Kills a function that is currently executing.
|
|
@@ -626,8 +625,8 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
626
625
|
* ```
|
|
627
626
|
*/
|
|
628
627
|
async functionKill() {
|
|
629
|
-
return this.createWritePromise((0,
|
|
630
|
-
decoder:
|
|
628
|
+
return this.createWritePromise((0, _1.createFunctionKill)(), {
|
|
629
|
+
decoder: _1.Decoder.String,
|
|
631
630
|
});
|
|
632
631
|
}
|
|
633
632
|
/**
|
|
@@ -645,8 +644,8 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
645
644
|
* ```
|
|
646
645
|
*/
|
|
647
646
|
async functionDump() {
|
|
648
|
-
return this.createWritePromise((0,
|
|
649
|
-
decoder:
|
|
647
|
+
return this.createWritePromise((0, _1.createFunctionDump)(), {
|
|
648
|
+
decoder: _1.Decoder.Bytes,
|
|
650
649
|
});
|
|
651
650
|
}
|
|
652
651
|
/**
|
|
@@ -666,8 +665,8 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
666
665
|
* ```
|
|
667
666
|
*/
|
|
668
667
|
async functionRestore(payload, policy) {
|
|
669
|
-
return this.createWritePromise((0,
|
|
670
|
-
decoder:
|
|
668
|
+
return this.createWritePromise((0, _1.createFunctionRestore)(payload, policy), {
|
|
669
|
+
decoder: _1.Decoder.String,
|
|
671
670
|
});
|
|
672
671
|
}
|
|
673
672
|
/**
|
|
@@ -685,8 +684,8 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
685
684
|
* ```
|
|
686
685
|
*/
|
|
687
686
|
async flushall(mode) {
|
|
688
|
-
return this.createWritePromise((0,
|
|
689
|
-
decoder:
|
|
687
|
+
return this.createWritePromise((0, _1.createFlushAll)(mode), {
|
|
688
|
+
decoder: _1.Decoder.String,
|
|
690
689
|
});
|
|
691
690
|
}
|
|
692
691
|
/**
|
|
@@ -704,8 +703,8 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
704
703
|
* ```
|
|
705
704
|
*/
|
|
706
705
|
async flushdb(mode) {
|
|
707
|
-
return this.createWritePromise((0,
|
|
708
|
-
decoder:
|
|
706
|
+
return this.createWritePromise((0, _1.createFlushDB)(mode), {
|
|
707
|
+
decoder: _1.Decoder.String,
|
|
709
708
|
});
|
|
710
709
|
}
|
|
711
710
|
/**
|
|
@@ -722,7 +721,7 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
722
721
|
* ```
|
|
723
722
|
*/
|
|
724
723
|
async dbsize() {
|
|
725
|
-
return this.createWritePromise((0,
|
|
724
|
+
return this.createWritePromise((0, _1.createDBSize)());
|
|
726
725
|
}
|
|
727
726
|
/** Publish a message on pubsub channel.
|
|
728
727
|
*
|
|
@@ -741,7 +740,7 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
741
740
|
* ```
|
|
742
741
|
*/
|
|
743
742
|
async publish(message, channel) {
|
|
744
|
-
return this.createWritePromise((0,
|
|
743
|
+
return this.createWritePromise((0, _1.createPublish)(message, channel));
|
|
745
744
|
}
|
|
746
745
|
/**
|
|
747
746
|
* Returns `UNIX TIME` of the last DB save timestamp or startup timestamp if no save
|
|
@@ -758,7 +757,7 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
758
757
|
* ```
|
|
759
758
|
*/
|
|
760
759
|
async lastsave() {
|
|
761
|
-
return this.createWritePromise((0,
|
|
760
|
+
return this.createWritePromise((0, _1.createLastSave)());
|
|
762
761
|
}
|
|
763
762
|
/**
|
|
764
763
|
* Returns a random existing key name from the currently selected database.
|
|
@@ -774,7 +773,7 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
774
773
|
* ```
|
|
775
774
|
*/
|
|
776
775
|
async randomKey(options) {
|
|
777
|
-
return this.createWritePromise((0,
|
|
776
|
+
return this.createWritePromise((0, _1.createRandomKey)(), options);
|
|
778
777
|
}
|
|
779
778
|
/**
|
|
780
779
|
* Flushes all the previously watched keys for a transaction. Executing a transaction will
|
|
@@ -793,8 +792,8 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
793
792
|
* ```
|
|
794
793
|
*/
|
|
795
794
|
async unwatch() {
|
|
796
|
-
return this.createWritePromise((0,
|
|
797
|
-
decoder:
|
|
795
|
+
return this.createWritePromise((0, _1.createUnWatch)(), {
|
|
796
|
+
decoder: _1.Decoder.String,
|
|
798
797
|
});
|
|
799
798
|
}
|
|
800
799
|
/**
|
|
@@ -812,7 +811,7 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
812
811
|
* ```
|
|
813
812
|
*/
|
|
814
813
|
async scriptExists(sha1s) {
|
|
815
|
-
return this.createWritePromise((0,
|
|
814
|
+
return this.createWritePromise((0, _1.createScriptExists)(sha1s));
|
|
816
815
|
}
|
|
817
816
|
/**
|
|
818
817
|
* Flushes the Lua scripts cache.
|
|
@@ -829,8 +828,8 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
829
828
|
* ```
|
|
830
829
|
*/
|
|
831
830
|
async scriptFlush(mode) {
|
|
832
|
-
return this.createWritePromise((0,
|
|
833
|
-
decoder:
|
|
831
|
+
return this.createWritePromise((0, _1.createScriptFlush)(mode), {
|
|
832
|
+
decoder: _1.Decoder.String,
|
|
834
833
|
});
|
|
835
834
|
}
|
|
836
835
|
/**
|
|
@@ -847,8 +846,8 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
847
846
|
* ```
|
|
848
847
|
*/
|
|
849
848
|
async scriptKill() {
|
|
850
|
-
return this.createWritePromise((0,
|
|
851
|
-
decoder:
|
|
849
|
+
return this.createWritePromise((0, _1.createScriptKill)(), {
|
|
850
|
+
decoder: _1.Decoder.String,
|
|
852
851
|
});
|
|
853
852
|
}
|
|
854
853
|
/**
|
|
@@ -893,7 +892,7 @@ class GlideClient extends BaseClient_1.BaseClient {
|
|
|
893
892
|
* ```
|
|
894
893
|
*/
|
|
895
894
|
async scan(cursor, options) {
|
|
896
|
-
return this.createWritePromise((0,
|
|
895
|
+
return this.createWritePromise((0, _1.createScan)(cursor, options), options);
|
|
897
896
|
}
|
|
898
897
|
}
|
|
899
898
|
exports.GlideClient = GlideClient;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
|
|
3
3
|
*/
|
|
4
|
-
import { ClusterScanCursor, Script } from "
|
|
5
|
-
import { AdvancedBaseClientConfiguration, BaseClient, BaseClientConfiguration, DecoderOption, GlideReturnType, GlideString, PubSubMsg } from "./BaseClient";
|
|
6
|
-
import { ClusterBatch } from "./Batch";
|
|
7
|
-
import { ClusterBatchOptions, ClusterScanOptions, FlushMode, FunctionListOptions, FunctionListResponse, FunctionRestorePolicy, FunctionStatsSingleResponse, InfoOptions, LolwutOptions } from "./Commands";
|
|
4
|
+
import { AdvancedBaseClientConfiguration, BaseClient, BaseClientConfiguration, ClusterBatch, ClusterBatchOptions, ClusterScanCursor, ClusterScanOptions, DecoderOption, FlushMode, FunctionListOptions, FunctionListResponse, FunctionRestorePolicy, FunctionStatsSingleResponse, GlideReturnType, GlideString, InfoOptions, LolwutOptions, PubSubMsg, Script } from ".";
|
|
8
5
|
/** An extension to command option types with {@link Routes}. */
|
|
9
6
|
export interface RouteOption {
|
|
10
7
|
/**
|