@valkey/valkey-glide 2.1.1 → 2.1.2
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/build-ts/BaseClient.d.ts +3 -0
- package/build-ts/BaseClient.js +5 -1
- package/build-ts/Batch.d.ts +4 -0
- package/build-ts/Batch.js +4 -0
- package/build-ts/Commands.d.ts +2 -1
- package/build-ts/Commands.js +9 -4
- package/build-ts/GlideClient.d.ts +3 -1
- package/build-ts/GlideClient.js +50 -49
- package/build-ts/GlideClusterClient.d.ts +4 -1
- package/build-ts/GlideClusterClient.js +53 -51
- package/package.json +7 -7
package/build-ts/BaseClient.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
|
|
3
|
+
*/
|
|
1
4
|
import * as net from "net";
|
|
2
5
|
import { Buffer, Writer } from "protobufjs/minimal";
|
|
3
6
|
import { AggregationType, BaseScanOptions, BitFieldGet, // eslint-disable-line @typescript-eslint/no-unused-vars
|
package/build-ts/BaseClient.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
2
5
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
6
|
if (k2 === undefined) k2 = k;
|
|
4
7
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -42,7 +45,8 @@ exports.convertGlideRecordToRecord = convertGlideRecordToRecord;
|
|
|
42
45
|
exports.isGlideRecord = isGlideRecord;
|
|
43
46
|
exports.convertRecordToGlideRecord = convertRecordToGlideRecord;
|
|
44
47
|
/**
|
|
45
|
-
*
|
|
48
|
+
* Note: 'eslint-disable-line @typescript-eslint/no-unused-vars' is used intentionally
|
|
49
|
+
* to suppress unused import errors for types referenced only in JSDoc.
|
|
46
50
|
*/
|
|
47
51
|
const long_1 = __importDefault(require("long"));
|
|
48
52
|
const net = __importStar(require("net"));
|
package/build-ts/Batch.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
|
|
3
3
|
*/
|
|
4
|
+
/**
|
|
5
|
+
* Note: 'eslint-disable-line @typescript-eslint/no-unused-vars' is used intentionally
|
|
6
|
+
* to suppress unused import errors for types referenced only in JSDoc.
|
|
7
|
+
*/
|
|
4
8
|
import { AggregationType, BaseScanOptions, BitFieldGet, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
5
9
|
BitFieldSubCommands, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
6
10
|
BitOffsetOptions, BitwiseOperation, Boundary, // eslint-disable-line @typescript-eslint/no-unused-vars
|
package/build-ts/Batch.js
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Transaction = exports.ClusterTransaction = exports.ClusterBatch = exports.Batch = exports.BaseBatch = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Note: 'eslint-disable-line @typescript-eslint/no-unused-vars' is used intentionally
|
|
9
|
+
* to suppress unused import errors for types referenced only in JSDoc.
|
|
10
|
+
*/
|
|
7
11
|
const _1 = require(".");
|
|
8
12
|
/**
|
|
9
13
|
* Base class encompassing shared commands for both standalone and cluster mode implementations in a Batch.
|
package/build-ts/Commands.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
|
|
3
3
|
*/
|
|
4
|
-
import { GlideString, HashDataType, ObjectType
|
|
4
|
+
import { GlideString, HashDataType, ObjectType } from "./BaseClient";
|
|
5
|
+
import { SingleNodeRoute } from "./GlideClusterClient";
|
|
5
6
|
/**
|
|
6
7
|
* @test
|
|
7
8
|
*/
|
package/build-ts/Commands.js
CHANGED
|
@@ -227,15 +227,20 @@ exports.createXGroupSetid = createXGroupSetid;
|
|
|
227
227
|
exports.createScriptExists = createScriptExists;
|
|
228
228
|
exports.createScriptFlush = createScriptFlush;
|
|
229
229
|
exports.createScriptKill = createScriptKill;
|
|
230
|
+
/**
|
|
231
|
+
* Note: 'eslint-disable-line @typescript-eslint/no-unused-vars' is used intentionally
|
|
232
|
+
* to suppress unused import errors for types referenced only in JSDoc.
|
|
233
|
+
*/
|
|
230
234
|
const long_1 = __importDefault(require("long"));
|
|
231
|
-
const
|
|
235
|
+
const BaseClient_1 = require("./BaseClient");
|
|
236
|
+
const native_1 = require("../build-ts/native");
|
|
232
237
|
const ProtobufMessage_1 = require("../build-ts/ProtobufMessage");
|
|
233
238
|
var RequestType = ProtobufMessage_1.command_request.RequestType;
|
|
234
239
|
function isLargeCommand(args) {
|
|
235
240
|
let lenSum = 0;
|
|
236
241
|
for (const arg of args) {
|
|
237
242
|
lenSum += arg.length;
|
|
238
|
-
if (lenSum >=
|
|
243
|
+
if (lenSum >= native_1.MAX_REQUEST_ARGS_LEN) {
|
|
239
244
|
return true;
|
|
240
245
|
}
|
|
241
246
|
}
|
|
@@ -278,7 +283,7 @@ function createCommand(requestType, args) {
|
|
|
278
283
|
const argsBytes = toBuffersArray(args);
|
|
279
284
|
if (isLargeCommand(args)) {
|
|
280
285
|
// pass as a pointer
|
|
281
|
-
const pointerArr = (0,
|
|
286
|
+
const pointerArr = (0, native_1.createLeakedStringVec)(argsBytes);
|
|
282
287
|
const pointer = new long_1.default(pointerArr[0], pointerArr[1]);
|
|
283
288
|
singleCommand.argsVecPointer = pointer;
|
|
284
289
|
}
|
|
@@ -2100,7 +2105,7 @@ var FlushMode;
|
|
|
2100
2105
|
*/
|
|
2101
2106
|
function convertKeysAndEntries(record) {
|
|
2102
2107
|
if (!Array.isArray(record)) {
|
|
2103
|
-
return (0,
|
|
2108
|
+
return (0, BaseClient_1.convertRecordToGlideRecord)(record);
|
|
2104
2109
|
}
|
|
2105
2110
|
return record;
|
|
2106
2111
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
|
|
3
3
|
*/
|
|
4
|
-
import { AdvancedBaseClientConfiguration, BaseClient, BaseClientConfiguration,
|
|
4
|
+
import { AdvancedBaseClientConfiguration, BaseClient, BaseClientConfiguration, DecoderOption, GlideReturnType, GlideString, PubSubMsg } from "./BaseClient";
|
|
5
|
+
import { Batch } from "./Batch";
|
|
6
|
+
import { BatchOptions, FlushMode, FunctionListOptions, FunctionListResponse, FunctionRestorePolicy, FunctionStatsFullResponse, InfoOptions, LolwutOptions, ScanOptions } from "./Commands";
|
|
5
7
|
export declare namespace GlideClientConfiguration {
|
|
6
8
|
/**
|
|
7
9
|
* Enum representing pubsub subscription modes.
|
package/build-ts/GlideClient.js
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.GlideClient = exports.GlideClientConfiguration = void 0;
|
|
7
|
-
const
|
|
7
|
+
const BaseClient_1 = require("./BaseClient");
|
|
8
|
+
const Commands_1 = require("./Commands");
|
|
8
9
|
/* eslint-disable-next-line @typescript-eslint/no-namespace */
|
|
9
10
|
var GlideClientConfiguration;
|
|
10
11
|
(function (GlideClientConfiguration) {
|
|
@@ -30,7 +31,7 @@ var GlideClientConfiguration;
|
|
|
30
31
|
*
|
|
31
32
|
* @see For full documentation refer to {@link https://github.com/valkey-io/valkey-glide/wiki/NodeJS-wrapper#standalone | Valkey Glide Wiki}.
|
|
32
33
|
*/
|
|
33
|
-
class GlideClient extends
|
|
34
|
+
class GlideClient extends BaseClient_1.BaseClient {
|
|
34
35
|
/**
|
|
35
36
|
* @internal
|
|
36
37
|
*/
|
|
@@ -171,7 +172,7 @@ class GlideClient extends _1.BaseClient {
|
|
|
171
172
|
* ```
|
|
172
173
|
*/
|
|
173
174
|
async customCommand(args, options) {
|
|
174
|
-
return this.createWritePromise((0,
|
|
175
|
+
return this.createWritePromise((0, Commands_1.createCustomCommand)(args), options);
|
|
175
176
|
}
|
|
176
177
|
/**
|
|
177
178
|
* Pings the server.
|
|
@@ -200,7 +201,7 @@ class GlideClient extends _1.BaseClient {
|
|
|
200
201
|
* ```
|
|
201
202
|
*/
|
|
202
203
|
async ping(options) {
|
|
203
|
-
return this.createWritePromise((0,
|
|
204
|
+
return this.createWritePromise((0, Commands_1.createPing)(options?.message), options);
|
|
204
205
|
}
|
|
205
206
|
/**
|
|
206
207
|
* Gets information and statistics about the server.
|
|
@@ -221,8 +222,8 @@ class GlideClient extends _1.BaseClient {
|
|
|
221
222
|
* ```
|
|
222
223
|
*/
|
|
223
224
|
async info(sections) {
|
|
224
|
-
return this.createWritePromise((0,
|
|
225
|
-
decoder:
|
|
225
|
+
return this.createWritePromise((0, Commands_1.createInfo)(sections), {
|
|
226
|
+
decoder: BaseClient_1.Decoder.String,
|
|
226
227
|
});
|
|
227
228
|
}
|
|
228
229
|
/**
|
|
@@ -241,7 +242,7 @@ class GlideClient extends _1.BaseClient {
|
|
|
241
242
|
* ```
|
|
242
243
|
*/
|
|
243
244
|
async clientGetName(options) {
|
|
244
|
-
return this.createWritePromise((0,
|
|
245
|
+
return this.createWritePromise((0, Commands_1.createClientGetName)(), options);
|
|
245
246
|
}
|
|
246
247
|
/**
|
|
247
248
|
* Rewrites the configuration file with the current configuration.
|
|
@@ -258,8 +259,8 @@ class GlideClient extends _1.BaseClient {
|
|
|
258
259
|
* ```
|
|
259
260
|
*/
|
|
260
261
|
async configRewrite() {
|
|
261
|
-
return this.createWritePromise((0,
|
|
262
|
-
decoder:
|
|
262
|
+
return this.createWritePromise((0, Commands_1.createConfigRewrite)(), {
|
|
263
|
+
decoder: BaseClient_1.Decoder.String,
|
|
263
264
|
});
|
|
264
265
|
}
|
|
265
266
|
/**
|
|
@@ -277,8 +278,8 @@ class GlideClient extends _1.BaseClient {
|
|
|
277
278
|
* ```
|
|
278
279
|
*/
|
|
279
280
|
async configResetStat() {
|
|
280
|
-
return this.createWritePromise((0,
|
|
281
|
-
decoder:
|
|
281
|
+
return this.createWritePromise((0, Commands_1.createConfigResetStat)(), {
|
|
282
|
+
decoder: BaseClient_1.Decoder.String,
|
|
282
283
|
});
|
|
283
284
|
}
|
|
284
285
|
/**
|
|
@@ -295,7 +296,7 @@ class GlideClient extends _1.BaseClient {
|
|
|
295
296
|
* ```
|
|
296
297
|
*/
|
|
297
298
|
async clientId() {
|
|
298
|
-
return this.createWritePromise((0,
|
|
299
|
+
return this.createWritePromise((0, Commands_1.createClientId)());
|
|
299
300
|
}
|
|
300
301
|
/**
|
|
301
302
|
* Reads the configuration parameters of the running server.
|
|
@@ -316,7 +317,7 @@ class GlideClient extends _1.BaseClient {
|
|
|
316
317
|
* ```
|
|
317
318
|
*/
|
|
318
319
|
async configGet(parameters, options) {
|
|
319
|
-
return this.createWritePromise((0,
|
|
320
|
+
return this.createWritePromise((0, Commands_1.createConfigGet)(parameters), options).then(BaseClient_1.convertGlideRecordToRecord);
|
|
320
321
|
}
|
|
321
322
|
/**
|
|
322
323
|
* Sets configuration parameters to the specified values.
|
|
@@ -334,8 +335,8 @@ class GlideClient extends _1.BaseClient {
|
|
|
334
335
|
* ```
|
|
335
336
|
*/
|
|
336
337
|
async configSet(parameters) {
|
|
337
|
-
return this.createWritePromise((0,
|
|
338
|
-
decoder:
|
|
338
|
+
return this.createWritePromise((0, Commands_1.createConfigSet)(parameters), {
|
|
339
|
+
decoder: BaseClient_1.Decoder.String,
|
|
339
340
|
});
|
|
340
341
|
}
|
|
341
342
|
/**
|
|
@@ -355,7 +356,7 @@ class GlideClient extends _1.BaseClient {
|
|
|
355
356
|
* ```
|
|
356
357
|
*/
|
|
357
358
|
async echo(message, options) {
|
|
358
|
-
return this.createWritePromise((0,
|
|
359
|
+
return this.createWritePromise((0, Commands_1.createEcho)(message), options);
|
|
359
360
|
}
|
|
360
361
|
/**
|
|
361
362
|
* Returns the server time.
|
|
@@ -372,8 +373,8 @@ class GlideClient extends _1.BaseClient {
|
|
|
372
373
|
* ```
|
|
373
374
|
*/
|
|
374
375
|
async time() {
|
|
375
|
-
return this.createWritePromise((0,
|
|
376
|
-
decoder:
|
|
376
|
+
return this.createWritePromise((0, Commands_1.createTime)(), {
|
|
377
|
+
decoder: BaseClient_1.Decoder.String,
|
|
377
378
|
});
|
|
378
379
|
}
|
|
379
380
|
/**
|
|
@@ -391,8 +392,8 @@ class GlideClient extends _1.BaseClient {
|
|
|
391
392
|
* ```
|
|
392
393
|
*/
|
|
393
394
|
async lolwut(options) {
|
|
394
|
-
return this.createWritePromise((0,
|
|
395
|
-
decoder:
|
|
395
|
+
return this.createWritePromise((0, Commands_1.createLolwut)(options), {
|
|
396
|
+
decoder: BaseClient_1.Decoder.String,
|
|
396
397
|
});
|
|
397
398
|
}
|
|
398
399
|
/**
|
|
@@ -411,8 +412,8 @@ class GlideClient extends _1.BaseClient {
|
|
|
411
412
|
* ```
|
|
412
413
|
*/
|
|
413
414
|
async functionDelete(libraryCode) {
|
|
414
|
-
return this.createWritePromise((0,
|
|
415
|
-
decoder:
|
|
415
|
+
return this.createWritePromise((0, Commands_1.createFunctionDelete)(libraryCode), {
|
|
416
|
+
decoder: BaseClient_1.Decoder.String,
|
|
416
417
|
});
|
|
417
418
|
}
|
|
418
419
|
/**
|
|
@@ -436,7 +437,7 @@ class GlideClient extends _1.BaseClient {
|
|
|
436
437
|
* ```
|
|
437
438
|
*/
|
|
438
439
|
async functionLoad(libraryCode, options) {
|
|
439
|
-
return this.createWritePromise((0,
|
|
440
|
+
return this.createWritePromise((0, Commands_1.createFunctionLoad)(libraryCode, options?.replace), options);
|
|
440
441
|
}
|
|
441
442
|
/**
|
|
442
443
|
* Deletes all function libraries.
|
|
@@ -454,8 +455,8 @@ class GlideClient extends _1.BaseClient {
|
|
|
454
455
|
* ```
|
|
455
456
|
*/
|
|
456
457
|
async functionFlush(mode) {
|
|
457
|
-
return this.createWritePromise((0,
|
|
458
|
-
decoder:
|
|
458
|
+
return this.createWritePromise((0, Commands_1.createFunctionFlush)(mode), {
|
|
459
|
+
decoder: BaseClient_1.Decoder.String,
|
|
459
460
|
});
|
|
460
461
|
}
|
|
461
462
|
/**
|
|
@@ -487,7 +488,7 @@ class GlideClient extends _1.BaseClient {
|
|
|
487
488
|
* ```
|
|
488
489
|
*/
|
|
489
490
|
async functionList(options) {
|
|
490
|
-
return this.createWritePromise((0,
|
|
491
|
+
return this.createWritePromise((0, Commands_1.createFunctionList)(options), options).then((res) => res.map(BaseClient_1.convertGlideRecordToRecord));
|
|
491
492
|
}
|
|
492
493
|
/**
|
|
493
494
|
* Returns information about the function that's currently running and information about the
|
|
@@ -535,7 +536,7 @@ class GlideClient extends _1.BaseClient {
|
|
|
535
536
|
* ```
|
|
536
537
|
*/
|
|
537
538
|
async functionStats(options) {
|
|
538
|
-
return this.createWritePromise((0,
|
|
539
|
+
return this.createWritePromise((0, Commands_1.createFunctionStats)(), options).then((res) => (0, BaseClient_1.convertGlideRecordToRecord)(res));
|
|
539
540
|
}
|
|
540
541
|
/**
|
|
541
542
|
* Kills a function that is currently executing.
|
|
@@ -552,8 +553,8 @@ class GlideClient extends _1.BaseClient {
|
|
|
552
553
|
* ```
|
|
553
554
|
*/
|
|
554
555
|
async functionKill() {
|
|
555
|
-
return this.createWritePromise((0,
|
|
556
|
-
decoder:
|
|
556
|
+
return this.createWritePromise((0, Commands_1.createFunctionKill)(), {
|
|
557
|
+
decoder: BaseClient_1.Decoder.String,
|
|
557
558
|
});
|
|
558
559
|
}
|
|
559
560
|
/**
|
|
@@ -571,8 +572,8 @@ class GlideClient extends _1.BaseClient {
|
|
|
571
572
|
* ```
|
|
572
573
|
*/
|
|
573
574
|
async functionDump() {
|
|
574
|
-
return this.createWritePromise((0,
|
|
575
|
-
decoder:
|
|
575
|
+
return this.createWritePromise((0, Commands_1.createFunctionDump)(), {
|
|
576
|
+
decoder: BaseClient_1.Decoder.Bytes,
|
|
576
577
|
});
|
|
577
578
|
}
|
|
578
579
|
/**
|
|
@@ -592,8 +593,8 @@ class GlideClient extends _1.BaseClient {
|
|
|
592
593
|
* ```
|
|
593
594
|
*/
|
|
594
595
|
async functionRestore(payload, policy) {
|
|
595
|
-
return this.createWritePromise((0,
|
|
596
|
-
decoder:
|
|
596
|
+
return this.createWritePromise((0, Commands_1.createFunctionRestore)(payload, policy), {
|
|
597
|
+
decoder: BaseClient_1.Decoder.String,
|
|
597
598
|
});
|
|
598
599
|
}
|
|
599
600
|
/**
|
|
@@ -611,8 +612,8 @@ class GlideClient extends _1.BaseClient {
|
|
|
611
612
|
* ```
|
|
612
613
|
*/
|
|
613
614
|
async flushall(mode) {
|
|
614
|
-
return this.createWritePromise((0,
|
|
615
|
-
decoder:
|
|
615
|
+
return this.createWritePromise((0, Commands_1.createFlushAll)(mode), {
|
|
616
|
+
decoder: BaseClient_1.Decoder.String,
|
|
616
617
|
});
|
|
617
618
|
}
|
|
618
619
|
/**
|
|
@@ -630,8 +631,8 @@ class GlideClient extends _1.BaseClient {
|
|
|
630
631
|
* ```
|
|
631
632
|
*/
|
|
632
633
|
async flushdb(mode) {
|
|
633
|
-
return this.createWritePromise((0,
|
|
634
|
-
decoder:
|
|
634
|
+
return this.createWritePromise((0, Commands_1.createFlushDB)(mode), {
|
|
635
|
+
decoder: BaseClient_1.Decoder.String,
|
|
635
636
|
});
|
|
636
637
|
}
|
|
637
638
|
/**
|
|
@@ -648,7 +649,7 @@ class GlideClient extends _1.BaseClient {
|
|
|
648
649
|
* ```
|
|
649
650
|
*/
|
|
650
651
|
async dbsize() {
|
|
651
|
-
return this.createWritePromise((0,
|
|
652
|
+
return this.createWritePromise((0, Commands_1.createDBSize)());
|
|
652
653
|
}
|
|
653
654
|
/** Publish a message on pubsub channel.
|
|
654
655
|
*
|
|
@@ -667,7 +668,7 @@ class GlideClient extends _1.BaseClient {
|
|
|
667
668
|
* ```
|
|
668
669
|
*/
|
|
669
670
|
async publish(message, channel) {
|
|
670
|
-
return this.createWritePromise((0,
|
|
671
|
+
return this.createWritePromise((0, Commands_1.createPublish)(message, channel));
|
|
671
672
|
}
|
|
672
673
|
/**
|
|
673
674
|
* Returns `UNIX TIME` of the last DB save timestamp or startup timestamp if no save
|
|
@@ -684,7 +685,7 @@ class GlideClient extends _1.BaseClient {
|
|
|
684
685
|
* ```
|
|
685
686
|
*/
|
|
686
687
|
async lastsave() {
|
|
687
|
-
return this.createWritePromise((0,
|
|
688
|
+
return this.createWritePromise((0, Commands_1.createLastSave)());
|
|
688
689
|
}
|
|
689
690
|
/**
|
|
690
691
|
* Returns a random existing key name from the currently selected database.
|
|
@@ -700,7 +701,7 @@ class GlideClient extends _1.BaseClient {
|
|
|
700
701
|
* ```
|
|
701
702
|
*/
|
|
702
703
|
async randomKey(options) {
|
|
703
|
-
return this.createWritePromise((0,
|
|
704
|
+
return this.createWritePromise((0, Commands_1.createRandomKey)(), options);
|
|
704
705
|
}
|
|
705
706
|
/**
|
|
706
707
|
* Flushes all the previously watched keys for a transaction. Executing a transaction will
|
|
@@ -717,8 +718,8 @@ class GlideClient extends _1.BaseClient {
|
|
|
717
718
|
* ```
|
|
718
719
|
*/
|
|
719
720
|
async unwatch() {
|
|
720
|
-
return this.createWritePromise((0,
|
|
721
|
-
decoder:
|
|
721
|
+
return this.createWritePromise((0, Commands_1.createUnWatch)(), {
|
|
722
|
+
decoder: BaseClient_1.Decoder.String,
|
|
722
723
|
});
|
|
723
724
|
}
|
|
724
725
|
/**
|
|
@@ -736,7 +737,7 @@ class GlideClient extends _1.BaseClient {
|
|
|
736
737
|
* ```
|
|
737
738
|
*/
|
|
738
739
|
async scriptExists(sha1s) {
|
|
739
|
-
return this.createWritePromise((0,
|
|
740
|
+
return this.createWritePromise((0, Commands_1.createScriptExists)(sha1s));
|
|
740
741
|
}
|
|
741
742
|
/**
|
|
742
743
|
* Flushes the Lua scripts cache.
|
|
@@ -753,8 +754,8 @@ class GlideClient extends _1.BaseClient {
|
|
|
753
754
|
* ```
|
|
754
755
|
*/
|
|
755
756
|
async scriptFlush(mode) {
|
|
756
|
-
return this.createWritePromise((0,
|
|
757
|
-
decoder:
|
|
757
|
+
return this.createWritePromise((0, Commands_1.createScriptFlush)(mode), {
|
|
758
|
+
decoder: BaseClient_1.Decoder.String,
|
|
758
759
|
});
|
|
759
760
|
}
|
|
760
761
|
/**
|
|
@@ -771,8 +772,8 @@ class GlideClient extends _1.BaseClient {
|
|
|
771
772
|
* ```
|
|
772
773
|
*/
|
|
773
774
|
async scriptKill() {
|
|
774
|
-
return this.createWritePromise((0,
|
|
775
|
-
decoder:
|
|
775
|
+
return this.createWritePromise((0, Commands_1.createScriptKill)(), {
|
|
776
|
+
decoder: BaseClient_1.Decoder.String,
|
|
776
777
|
});
|
|
777
778
|
}
|
|
778
779
|
/**
|
|
@@ -817,7 +818,7 @@ class GlideClient extends _1.BaseClient {
|
|
|
817
818
|
* ```
|
|
818
819
|
*/
|
|
819
820
|
async scan(cursor, options) {
|
|
820
|
-
return this.createWritePromise((0,
|
|
821
|
+
return this.createWritePromise((0, Commands_1.createScan)(cursor, options), options);
|
|
821
822
|
}
|
|
822
823
|
}
|
|
823
824
|
exports.GlideClient = GlideClient;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { ClusterScanCursor, Script } from "../build-ts/native";
|
|
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";
|
|
5
8
|
/** An extension to command option types with {@link Routes}. */
|
|
6
9
|
export interface RouteOption {
|
|
7
10
|
/**
|
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.GlideClusterClient = exports.GlideClusterClientConfiguration = void 0;
|
|
7
|
-
const
|
|
7
|
+
const native_1 = require("../build-ts/native");
|
|
8
8
|
const ProtobufMessage_1 = require("../build-ts/ProtobufMessage");
|
|
9
|
+
const BaseClient_1 = require("./BaseClient");
|
|
10
|
+
const Commands_1 = require("./Commands");
|
|
9
11
|
/* eslint-disable-next-line @typescript-eslint/no-namespace */
|
|
10
12
|
var GlideClusterClientConfiguration;
|
|
11
13
|
(function (GlideClusterClientConfiguration) {
|
|
@@ -46,7 +48,7 @@ function convertClusterGlideRecord(res, isRoutedToSingleNodeByDefault, route) {
|
|
|
46
48
|
(Boolean(route) && route !== "allPrimaries" && route !== "allNodes");
|
|
47
49
|
return isSingleNodeResponse
|
|
48
50
|
? res
|
|
49
|
-
: (0,
|
|
51
|
+
: (0, BaseClient_1.convertGlideRecordToRecord)(res);
|
|
50
52
|
}
|
|
51
53
|
/**
|
|
52
54
|
* Client used for connection to cluster servers.
|
|
@@ -54,7 +56,7 @@ function convertClusterGlideRecord(res, isRoutedToSingleNodeByDefault, route) {
|
|
|
54
56
|
*
|
|
55
57
|
* @see For full documentation refer to {@link https://github.com/valkey-io/valkey-glide/wiki/NodeJS-wrapper#cluster | Valkey Glide Wiki}.
|
|
56
58
|
*/
|
|
57
|
-
class GlideClusterClient extends
|
|
59
|
+
class GlideClusterClient extends BaseClient_1.BaseClient {
|
|
58
60
|
/**
|
|
59
61
|
* @internal
|
|
60
62
|
*/
|
|
@@ -183,7 +185,7 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
183
185
|
(resolveAns) => {
|
|
184
186
|
try {
|
|
185
187
|
resolve([
|
|
186
|
-
new
|
|
188
|
+
new native_1.ClusterScanCursor(resolveAns[0].toString()),
|
|
187
189
|
resolveAns[1],
|
|
188
190
|
]);
|
|
189
191
|
}
|
|
@@ -287,7 +289,7 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
287
289
|
* ```
|
|
288
290
|
*/
|
|
289
291
|
async customCommand(args, options) {
|
|
290
|
-
const command = (0,
|
|
292
|
+
const command = (0, Commands_1.createCustomCommand)(args);
|
|
291
293
|
return super.createWritePromise(command, options);
|
|
292
294
|
}
|
|
293
295
|
/**
|
|
@@ -384,7 +386,7 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
384
386
|
* ```
|
|
385
387
|
*/
|
|
386
388
|
async ping(options) {
|
|
387
|
-
return this.createWritePromise((0,
|
|
389
|
+
return this.createWritePromise((0, Commands_1.createPing)(options?.message), options);
|
|
388
390
|
}
|
|
389
391
|
/**
|
|
390
392
|
* Gets information and statistics about the server.
|
|
@@ -411,7 +413,7 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
411
413
|
* ```
|
|
412
414
|
*/
|
|
413
415
|
async info(options) {
|
|
414
|
-
return this.createWritePromise((0,
|
|
416
|
+
return this.createWritePromise((0, Commands_1.createInfo)(options?.sections), { decoder: BaseClient_1.Decoder.String, ...options }).then((res) => convertClusterGlideRecord(res, false, options?.route));
|
|
415
417
|
}
|
|
416
418
|
/**
|
|
417
419
|
* Gets the name of the connection to which the request is routed.
|
|
@@ -441,7 +443,7 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
441
443
|
* ```
|
|
442
444
|
*/
|
|
443
445
|
async clientGetName(options) {
|
|
444
|
-
return this.createWritePromise((0,
|
|
446
|
+
return this.createWritePromise((0, Commands_1.createClientGetName)(), options).then((res) => convertClusterGlideRecord(res, true, options?.route));
|
|
445
447
|
}
|
|
446
448
|
/**
|
|
447
449
|
* Rewrites the configuration file with the current configuration.
|
|
@@ -461,8 +463,8 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
461
463
|
* ```
|
|
462
464
|
*/
|
|
463
465
|
async configRewrite(options) {
|
|
464
|
-
return this.createWritePromise((0,
|
|
465
|
-
decoder:
|
|
466
|
+
return this.createWritePromise((0, Commands_1.createConfigRewrite)(), {
|
|
467
|
+
decoder: BaseClient_1.Decoder.String,
|
|
466
468
|
...options,
|
|
467
469
|
});
|
|
468
470
|
}
|
|
@@ -484,8 +486,8 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
484
486
|
* ```
|
|
485
487
|
*/
|
|
486
488
|
async configResetStat(options) {
|
|
487
|
-
return this.createWritePromise((0,
|
|
488
|
-
decoder:
|
|
489
|
+
return this.createWritePromise((0, Commands_1.createConfigResetStat)(), {
|
|
490
|
+
decoder: BaseClient_1.Decoder.String,
|
|
489
491
|
...options,
|
|
490
492
|
});
|
|
491
493
|
}
|
|
@@ -507,7 +509,7 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
507
509
|
* ```
|
|
508
510
|
*/
|
|
509
511
|
async clientId(options) {
|
|
510
|
-
return this.createWritePromise((0,
|
|
512
|
+
return this.createWritePromise((0, Commands_1.createClientId)(), options).then((res) => convertClusterGlideRecord(res, true, options?.route));
|
|
511
513
|
}
|
|
512
514
|
/**
|
|
513
515
|
* Reads the configuration parameters of the running server.
|
|
@@ -538,7 +540,7 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
538
540
|
* ```
|
|
539
541
|
*/
|
|
540
542
|
async configGet(parameters, options) {
|
|
541
|
-
return this.createWritePromise((0,
|
|
543
|
+
return this.createWritePromise((0, Commands_1.createConfigGet)(parameters), options).then((res) => (0, BaseClient_1.convertGlideRecordToRecord)(res));
|
|
542
544
|
}
|
|
543
545
|
/**
|
|
544
546
|
* Sets configuration parameters to the specified values.
|
|
@@ -560,8 +562,8 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
560
562
|
* ```
|
|
561
563
|
*/
|
|
562
564
|
async configSet(parameters, options) {
|
|
563
|
-
return this.createWritePromise((0,
|
|
564
|
-
decoder:
|
|
565
|
+
return this.createWritePromise((0, Commands_1.createConfigSet)(parameters), {
|
|
566
|
+
decoder: BaseClient_1.Decoder.String,
|
|
565
567
|
...options,
|
|
566
568
|
});
|
|
567
569
|
}
|
|
@@ -591,7 +593,7 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
591
593
|
* ```
|
|
592
594
|
*/
|
|
593
595
|
async echo(message, options) {
|
|
594
|
-
return this.createWritePromise((0,
|
|
596
|
+
return this.createWritePromise((0, Commands_1.createEcho)(message), options).then((res) => convertClusterGlideRecord(res, true, options?.route));
|
|
595
597
|
}
|
|
596
598
|
/**
|
|
597
599
|
* Returns the server time.
|
|
@@ -624,7 +626,7 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
624
626
|
* ```
|
|
625
627
|
*/
|
|
626
628
|
async time(options) {
|
|
627
|
-
return this.createWritePromise((0,
|
|
629
|
+
return this.createWritePromise((0, Commands_1.createTime)(), options).then((res) => convertClusterGlideRecord(res, true, options?.route));
|
|
628
630
|
}
|
|
629
631
|
/**
|
|
630
632
|
* Displays a piece of generative computer art and the server version.
|
|
@@ -643,7 +645,7 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
643
645
|
* ```
|
|
644
646
|
*/
|
|
645
647
|
async lolwut(options) {
|
|
646
|
-
return this.createWritePromise((0,
|
|
648
|
+
return this.createWritePromise((0, Commands_1.createLolwut)(options), options).then((res) => convertClusterGlideRecord(res, true, options?.route));
|
|
647
649
|
}
|
|
648
650
|
/**
|
|
649
651
|
* Invokes a previously loaded function.
|
|
@@ -665,7 +667,7 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
665
667
|
* ```
|
|
666
668
|
*/
|
|
667
669
|
async fcallWithRoute(func, args, options) {
|
|
668
|
-
return this.createWritePromise((0,
|
|
670
|
+
return this.createWritePromise((0, Commands_1.createFCall)(func, [], args), options).then((res) => convertClusterGlideRecord(res, true, options?.route));
|
|
669
671
|
}
|
|
670
672
|
/**
|
|
671
673
|
* Invokes a previously loaded read-only function.
|
|
@@ -688,7 +690,7 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
688
690
|
* ```
|
|
689
691
|
*/
|
|
690
692
|
async fcallReadonlyWithRoute(func, args, options) {
|
|
691
|
-
return this.createWritePromise((0,
|
|
693
|
+
return this.createWritePromise((0, Commands_1.createFCallReadOnly)(func, [], args), options).then((res) => convertClusterGlideRecord(res, true, options?.route));
|
|
692
694
|
}
|
|
693
695
|
/**
|
|
694
696
|
* Deletes a library and all its functions.
|
|
@@ -708,8 +710,8 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
708
710
|
* ```
|
|
709
711
|
*/
|
|
710
712
|
async functionDelete(libraryCode, options) {
|
|
711
|
-
return this.createWritePromise((0,
|
|
712
|
-
decoder:
|
|
713
|
+
return this.createWritePromise((0, Commands_1.createFunctionDelete)(libraryCode), {
|
|
714
|
+
decoder: BaseClient_1.Decoder.String,
|
|
713
715
|
...options,
|
|
714
716
|
});
|
|
715
717
|
}
|
|
@@ -735,7 +737,7 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
735
737
|
* ```
|
|
736
738
|
*/
|
|
737
739
|
async functionLoad(libraryCode, options) {
|
|
738
|
-
return this.createWritePromise((0,
|
|
740
|
+
return this.createWritePromise((0, Commands_1.createFunctionLoad)(libraryCode, options?.replace), options);
|
|
739
741
|
}
|
|
740
742
|
/**
|
|
741
743
|
* Deletes all function libraries.
|
|
@@ -755,8 +757,8 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
755
757
|
* ```
|
|
756
758
|
*/
|
|
757
759
|
async functionFlush(options) {
|
|
758
|
-
return this.createWritePromise((0,
|
|
759
|
-
decoder:
|
|
760
|
+
return this.createWritePromise((0, Commands_1.createFunctionFlush)(options?.mode), {
|
|
761
|
+
decoder: BaseClient_1.Decoder.String,
|
|
760
762
|
...options,
|
|
761
763
|
});
|
|
762
764
|
}
|
|
@@ -791,13 +793,13 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
791
793
|
* ```
|
|
792
794
|
*/
|
|
793
795
|
async functionList(options) {
|
|
794
|
-
return this.createWritePromise((0,
|
|
796
|
+
return this.createWritePromise((0, Commands_1.createFunctionList)(options), options).then((res) => res.length == 0
|
|
795
797
|
? res // no libs
|
|
796
798
|
: (Array.isArray(res[0])
|
|
797
799
|
? // single node response
|
|
798
|
-
res.map(
|
|
800
|
+
res.map(BaseClient_1.convertGlideRecordToRecord)
|
|
799
801
|
: // multi node response
|
|
800
|
-
(0,
|
|
802
|
+
(0, BaseClient_1.convertGlideRecordToRecord)(res)));
|
|
801
803
|
}
|
|
802
804
|
/**
|
|
803
805
|
* Returns information about the function that's currently running and information about the
|
|
@@ -849,7 +851,7 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
849
851
|
* ```
|
|
850
852
|
*/
|
|
851
853
|
async functionStats(options) {
|
|
852
|
-
return this.createWritePromise((0,
|
|
854
|
+
return this.createWritePromise((0, Commands_1.createFunctionStats)(), options).then((res) => (0, BaseClient_1.convertGlideRecordToRecord)(res));
|
|
853
855
|
}
|
|
854
856
|
/**
|
|
855
857
|
* Kills a function that is currently executing.
|
|
@@ -867,8 +869,8 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
867
869
|
* ```
|
|
868
870
|
*/
|
|
869
871
|
async functionKill(options) {
|
|
870
|
-
return this.createWritePromise((0,
|
|
871
|
-
decoder:
|
|
872
|
+
return this.createWritePromise((0, Commands_1.createFunctionKill)(), {
|
|
873
|
+
decoder: BaseClient_1.Decoder.String,
|
|
872
874
|
...options,
|
|
873
875
|
});
|
|
874
876
|
}
|
|
@@ -888,7 +890,7 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
888
890
|
* ```
|
|
889
891
|
*/
|
|
890
892
|
async functionDump(options) {
|
|
891
|
-
return this.createWritePromise((0,
|
|
893
|
+
return this.createWritePromise((0, Commands_1.createFunctionDump)(), { decoder: BaseClient_1.Decoder.Bytes, ...options }).then((res) => convertClusterGlideRecord(res, true, options?.route));
|
|
892
894
|
}
|
|
893
895
|
/**
|
|
894
896
|
* Restores libraries from the serialized payload returned by {@link functionDump}.
|
|
@@ -909,7 +911,7 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
909
911
|
* ```
|
|
910
912
|
*/
|
|
911
913
|
async functionRestore(payload, options) {
|
|
912
|
-
return this.createWritePromise((0,
|
|
914
|
+
return this.createWritePromise((0, Commands_1.createFunctionRestore)(payload, options?.policy), { decoder: BaseClient_1.Decoder.String, ...options });
|
|
913
915
|
}
|
|
914
916
|
/**
|
|
915
917
|
* Deletes all the keys of all the existing databases. This command never fails.
|
|
@@ -930,8 +932,8 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
930
932
|
* ```
|
|
931
933
|
*/
|
|
932
934
|
async flushall(options) {
|
|
933
|
-
return this.createWritePromise((0,
|
|
934
|
-
decoder:
|
|
935
|
+
return this.createWritePromise((0, Commands_1.createFlushAll)(options?.mode), {
|
|
936
|
+
decoder: BaseClient_1.Decoder.String,
|
|
935
937
|
...options,
|
|
936
938
|
});
|
|
937
939
|
}
|
|
@@ -954,8 +956,8 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
954
956
|
* ```
|
|
955
957
|
*/
|
|
956
958
|
async flushdb(options) {
|
|
957
|
-
return this.createWritePromise((0,
|
|
958
|
-
decoder:
|
|
959
|
+
return this.createWritePromise((0, Commands_1.createFlushDB)(options?.mode), {
|
|
960
|
+
decoder: BaseClient_1.Decoder.String,
|
|
959
961
|
...options,
|
|
960
962
|
});
|
|
961
963
|
}
|
|
@@ -977,7 +979,7 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
977
979
|
* ```
|
|
978
980
|
*/
|
|
979
981
|
async dbsize(options) {
|
|
980
|
-
return this.createWritePromise((0,
|
|
982
|
+
return this.createWritePromise((0, Commands_1.createDBSize)(), options);
|
|
981
983
|
}
|
|
982
984
|
/** Publish a message on pubsub channel.
|
|
983
985
|
* This command aggregates PUBLISH and SPUBLISH commands functionalities.
|
|
@@ -1006,7 +1008,7 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
1006
1008
|
* ```
|
|
1007
1009
|
*/
|
|
1008
1010
|
async publish(message, channel, sharded = false) {
|
|
1009
|
-
return this.createWritePromise((0,
|
|
1011
|
+
return this.createWritePromise((0, Commands_1.createPublish)(message, channel, sharded));
|
|
1010
1012
|
}
|
|
1011
1013
|
/**
|
|
1012
1014
|
* Lists the currently active shard channels.
|
|
@@ -1031,7 +1033,7 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
1031
1033
|
* ```
|
|
1032
1034
|
*/
|
|
1033
1035
|
async pubsubShardChannels(options) {
|
|
1034
|
-
return this.createWritePromise((0,
|
|
1036
|
+
return this.createWritePromise((0, Commands_1.createPubsubShardChannels)(options?.pattern), options);
|
|
1035
1037
|
}
|
|
1036
1038
|
/**
|
|
1037
1039
|
* Returns the number of subscribers (exclusive of clients subscribed to patterns) for the specified shard channels.
|
|
@@ -1054,7 +1056,7 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
1054
1056
|
* ```
|
|
1055
1057
|
*/
|
|
1056
1058
|
async pubsubShardNumSub(channels, options) {
|
|
1057
|
-
return this.createWritePromise((0,
|
|
1059
|
+
return this.createWritePromise((0, Commands_1.createPubSubShardNumSub)(channels), options).then((res) => res.map((r) => {
|
|
1058
1060
|
return { channel: r.key, numSub: r.value };
|
|
1059
1061
|
}));
|
|
1060
1062
|
}
|
|
@@ -1076,7 +1078,7 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
1076
1078
|
* ```
|
|
1077
1079
|
*/
|
|
1078
1080
|
async lastsave(options) {
|
|
1079
|
-
return this.createWritePromise((0,
|
|
1081
|
+
return this.createWritePromise((0, Commands_1.createLastSave)(), options).then((res) => convertClusterGlideRecord(res, true, options?.route));
|
|
1080
1082
|
}
|
|
1081
1083
|
/**
|
|
1082
1084
|
* Returns a random existing key name.
|
|
@@ -1095,7 +1097,7 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
1095
1097
|
* ```
|
|
1096
1098
|
*/
|
|
1097
1099
|
async randomKey(options) {
|
|
1098
|
-
return this.createWritePromise((0,
|
|
1100
|
+
return this.createWritePromise((0, Commands_1.createRandomKey)(), options);
|
|
1099
1101
|
}
|
|
1100
1102
|
/**
|
|
1101
1103
|
* Flushes all the previously watched keys for a transaction. Executing a transaction will
|
|
@@ -1115,8 +1117,8 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
1115
1117
|
* ```
|
|
1116
1118
|
*/
|
|
1117
1119
|
async unwatch(options) {
|
|
1118
|
-
return this.createWritePromise((0,
|
|
1119
|
-
decoder:
|
|
1120
|
+
return this.createWritePromise((0, Commands_1.createUnWatch)(), {
|
|
1121
|
+
decoder: BaseClient_1.Decoder.String,
|
|
1120
1122
|
...options,
|
|
1121
1123
|
});
|
|
1122
1124
|
}
|
|
@@ -1186,7 +1188,7 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
1186
1188
|
* ```
|
|
1187
1189
|
*/
|
|
1188
1190
|
async scriptExists(sha1s, options) {
|
|
1189
|
-
return this.createWritePromise((0,
|
|
1191
|
+
return this.createWritePromise((0, Commands_1.createScriptExists)(sha1s), options);
|
|
1190
1192
|
}
|
|
1191
1193
|
/**
|
|
1192
1194
|
* Flushes the Lua scripts cache.
|
|
@@ -1205,8 +1207,8 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
1205
1207
|
* ```
|
|
1206
1208
|
*/
|
|
1207
1209
|
async scriptFlush(options) {
|
|
1208
|
-
return this.createWritePromise((0,
|
|
1209
|
-
decoder:
|
|
1210
|
+
return this.createWritePromise((0, Commands_1.createScriptFlush)(options?.mode), {
|
|
1211
|
+
decoder: BaseClient_1.Decoder.String,
|
|
1210
1212
|
...options,
|
|
1211
1213
|
});
|
|
1212
1214
|
}
|
|
@@ -1226,8 +1228,8 @@ class GlideClusterClient extends _1.BaseClient {
|
|
|
1226
1228
|
* ```
|
|
1227
1229
|
*/
|
|
1228
1230
|
async scriptKill(options) {
|
|
1229
|
-
return this.createWritePromise((0,
|
|
1230
|
-
decoder:
|
|
1231
|
+
return this.createWritePromise((0, Commands_1.createScriptKill)(), {
|
|
1232
|
+
decoder: BaseClient_1.Decoder.String,
|
|
1231
1233
|
...options,
|
|
1232
1234
|
});
|
|
1233
1235
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"main": "build-ts/index.js",
|
|
5
5
|
"module": "build-ts/index.js",
|
|
6
6
|
"types": "build-ts/index.d.ts",
|
|
7
|
-
"version": "2.1.
|
|
7
|
+
"version": "2.1.2",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"import": {
|
|
@@ -134,11 +134,11 @@
|
|
|
134
134
|
}
|
|
135
135
|
},
|
|
136
136
|
"optionalDependencies": {
|
|
137
|
-
"@valkey/valkey-glide-darwin-x64": "2.1.
|
|
138
|
-
"@valkey/valkey-glide-darwin-arm64": "2.1.
|
|
139
|
-
"@valkey/valkey-glide-linux-x64-gnu": "2.1.
|
|
140
|
-
"@valkey/valkey-glide-linux-arm64-gnu": "2.1.
|
|
141
|
-
"@valkey/valkey-glide-linux-x64-musl": "2.1.
|
|
142
|
-
"@valkey/valkey-glide-linux-arm64-musl": "2.1.
|
|
137
|
+
"@valkey/valkey-glide-darwin-x64": "2.1.2",
|
|
138
|
+
"@valkey/valkey-glide-darwin-arm64": "2.1.2",
|
|
139
|
+
"@valkey/valkey-glide-linux-x64-gnu": "2.1.2",
|
|
140
|
+
"@valkey/valkey-glide-linux-arm64-gnu": "2.1.2",
|
|
141
|
+
"@valkey/valkey-glide-linux-x64-musl": "2.1.2",
|
|
142
|
+
"@valkey/valkey-glide-linux-arm64-musl": "2.1.2"
|
|
143
143
|
}
|
|
144
144
|
}
|