@upstash/redis 1.36.0-rc.1 → 1.36.0-rc.3
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/{chunk-U5HO3NMB.mjs → chunk-2HN5OIX5.mjs} +150 -149
- package/cloudflare.d.mts +2 -2
- package/cloudflare.d.ts +2 -2
- package/cloudflare.js +144 -87
- package/cloudflare.mjs +1 -1
- package/fastly.d.mts +2 -2
- package/fastly.d.ts +2 -2
- package/fastly.js +144 -87
- package/fastly.mjs +1 -1
- package/nodejs.d.mts +10 -72
- package/nodejs.d.ts +10 -72
- package/nodejs.js +152 -151
- package/nodejs.mjs +5 -5
- package/package.json +1 -1
- package/{zmscore-BVyzI3wx.d.mts → zmscore-DQw_6S0p.d.mts} +73 -53
- package/{zmscore-BVyzI3wx.d.ts → zmscore-DQw_6S0p.d.ts} +73 -53
package/cloudflare.js
CHANGED
|
@@ -400,7 +400,7 @@ var AutoPipelineExecutor = class {
|
|
|
400
400
|
this.activePipeline = pipeline;
|
|
401
401
|
this.indexInCurrentPipeline = 0;
|
|
402
402
|
}
|
|
403
|
-
const
|
|
403
|
+
const index2 = this.indexInCurrentPipeline++;
|
|
404
404
|
executeWithPipeline(pipeline);
|
|
405
405
|
const pipelineDone = this.deferExecution().then(() => {
|
|
406
406
|
if (!this.pipelinePromises.has(pipeline)) {
|
|
@@ -412,7 +412,7 @@ var AutoPipelineExecutor = class {
|
|
|
412
412
|
return this.pipelinePromises.get(pipeline);
|
|
413
413
|
});
|
|
414
414
|
const results = await pipelineDone;
|
|
415
|
-
const commandResult = results[
|
|
415
|
+
const commandResult = results[index2];
|
|
416
416
|
if (commandResult.error) {
|
|
417
417
|
throw new UpstashError(`Command failed: ${commandResult.error}`);
|
|
418
418
|
}
|
|
@@ -2526,55 +2526,119 @@ function flattenSchema(schema, pathPrefix = []) {
|
|
|
2526
2526
|
}
|
|
2527
2527
|
return fields;
|
|
2528
2528
|
}
|
|
2529
|
-
function
|
|
2530
|
-
const
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2529
|
+
function deserializeQueryResponse(rawResponse, options) {
|
|
2530
|
+
const hasEmptySelect = options?.select && Object.keys(options.select).length === 0;
|
|
2531
|
+
return rawResponse.map((itemRaw) => {
|
|
2532
|
+
const raw = itemRaw;
|
|
2533
|
+
const key = raw[0];
|
|
2534
|
+
const score = raw[1];
|
|
2535
|
+
const rawFields = raw[2];
|
|
2536
|
+
if (hasEmptySelect) {
|
|
2537
|
+
return { key, score };
|
|
2538
|
+
}
|
|
2539
|
+
if (!Array.isArray(rawFields) || rawFields.length === 0) {
|
|
2540
|
+
return { key, score, data: {} };
|
|
2541
|
+
}
|
|
2542
|
+
const mergedFields = {};
|
|
2543
|
+
for (const fieldRaw of rawFields) {
|
|
2544
|
+
const fieldObj = kvArrayToObject(fieldRaw);
|
|
2545
|
+
Object.assign(mergedFields, fieldObj);
|
|
2546
|
+
}
|
|
2547
|
+
if ("$" in mergedFields) {
|
|
2548
|
+
const data2 = mergedFields["$"];
|
|
2549
|
+
return { key, score, data: data2 };
|
|
2550
|
+
}
|
|
2551
|
+
const data = dotNotationToNested(mergedFields);
|
|
2552
|
+
return { key, score, data };
|
|
2553
|
+
});
|
|
2554
|
+
}
|
|
2555
|
+
function parseFieldInfo(fieldRaw) {
|
|
2556
|
+
const fieldType = fieldRaw[1];
|
|
2557
|
+
const options = fieldRaw.slice(2);
|
|
2558
|
+
const fieldInfo = { type: fieldType };
|
|
2559
|
+
for (const option of options) {
|
|
2560
|
+
switch (option.toUpperCase()) {
|
|
2561
|
+
case "NOTOKENIZE":
|
|
2562
|
+
fieldInfo.noTokenize = true;
|
|
2563
|
+
break;
|
|
2564
|
+
case "NOSTEM":
|
|
2565
|
+
fieldInfo.noStem = true;
|
|
2566
|
+
break;
|
|
2567
|
+
case "FAST":
|
|
2568
|
+
fieldInfo.fast = true;
|
|
2569
|
+
break;
|
|
2548
2570
|
}
|
|
2549
2571
|
}
|
|
2550
|
-
return
|
|
2572
|
+
return fieldInfo;
|
|
2551
2573
|
}
|
|
2552
|
-
function
|
|
2553
|
-
|
|
2574
|
+
function deserializeDescribeResponse(rawResponse) {
|
|
2575
|
+
const raw = kvArrayToObject(rawResponse);
|
|
2576
|
+
const schema = {};
|
|
2577
|
+
if (Array.isArray(raw.schema)) {
|
|
2578
|
+
for (const fieldRaw of raw.schema) {
|
|
2579
|
+
if (Array.isArray(fieldRaw) && fieldRaw.length >= 2) {
|
|
2580
|
+
const fieldName = fieldRaw[0];
|
|
2581
|
+
schema[fieldName] = parseFieldInfo(fieldRaw);
|
|
2582
|
+
}
|
|
2583
|
+
}
|
|
2584
|
+
}
|
|
2585
|
+
return {
|
|
2586
|
+
name: raw.name,
|
|
2587
|
+
dataType: raw.type.toLowerCase(),
|
|
2588
|
+
prefixes: raw.prefixes,
|
|
2589
|
+
...raw.language && { language: raw.language },
|
|
2590
|
+
schema
|
|
2591
|
+
};
|
|
2554
2592
|
}
|
|
2555
2593
|
function parseCountResponse(rawResponse) {
|
|
2556
2594
|
return typeof rawResponse === "number" ? rawResponse : parseInt(rawResponse, 10);
|
|
2557
2595
|
}
|
|
2596
|
+
function kvArrayToObject(v) {
|
|
2597
|
+
if (typeof v === "object" && v !== null && !Array.isArray(v)) return v;
|
|
2598
|
+
if (!Array.isArray(v)) return {};
|
|
2599
|
+
const obj = {};
|
|
2600
|
+
for (let i = 0; i < v.length; i += 2) {
|
|
2601
|
+
if (typeof v[i] === "string") obj[v[i]] = v[i + 1];
|
|
2602
|
+
}
|
|
2603
|
+
return obj;
|
|
2604
|
+
}
|
|
2605
|
+
function dotNotationToNested(obj) {
|
|
2606
|
+
const result = {};
|
|
2607
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
2608
|
+
const parts = key.split(".");
|
|
2609
|
+
let current = result;
|
|
2610
|
+
for (let i = 0; i < parts.length - 1; i++) {
|
|
2611
|
+
const part = parts[i];
|
|
2612
|
+
if (!(part in current)) {
|
|
2613
|
+
current[part] = {};
|
|
2614
|
+
}
|
|
2615
|
+
current = current[part];
|
|
2616
|
+
}
|
|
2617
|
+
current[parts[parts.length - 1]] = value;
|
|
2618
|
+
}
|
|
2619
|
+
return result;
|
|
2620
|
+
}
|
|
2558
2621
|
|
|
2559
2622
|
// pkg/commands/search/command-builder.ts
|
|
2560
|
-
function buildQueryCommand(redisCommand,
|
|
2561
|
-
const
|
|
2623
|
+
function buildQueryCommand(redisCommand, name, options) {
|
|
2624
|
+
const query = JSON.stringify(options?.filter);
|
|
2625
|
+
const command = [redisCommand, name, query];
|
|
2562
2626
|
if (options?.limit !== void 0) {
|
|
2563
2627
|
command.push("LIMIT", options.limit.toString());
|
|
2564
2628
|
}
|
|
2565
2629
|
if (options?.offset !== void 0) {
|
|
2566
2630
|
command.push("OFFSET", options.offset.toString());
|
|
2567
2631
|
}
|
|
2568
|
-
if (options?.
|
|
2632
|
+
if (options?.select && Object.keys(options.select).length === 0) {
|
|
2569
2633
|
command.push("NOCONTENT");
|
|
2570
2634
|
}
|
|
2571
|
-
if (options?.
|
|
2572
|
-
command.push("SORTBY"
|
|
2573
|
-
|
|
2574
|
-
command.push(
|
|
2575
|
-
}
|
|
2635
|
+
if (options?.orderBy) {
|
|
2636
|
+
command.push("SORTBY");
|
|
2637
|
+
Object.entries(options.orderBy).forEach(([field, direction]) => {
|
|
2638
|
+
command.push(field, direction);
|
|
2639
|
+
});
|
|
2576
2640
|
}
|
|
2577
|
-
if (options
|
|
2641
|
+
if (options?.highlight) {
|
|
2578
2642
|
command.push(
|
|
2579
2643
|
"HIGHLIGHT",
|
|
2580
2644
|
"FIELDS",
|
|
@@ -2585,16 +2649,20 @@ function buildQueryCommand(redisCommand, indexName, query, options) {
|
|
|
2585
2649
|
command.push("TAGS", options.highlight.preTag, options.highlight.postTag);
|
|
2586
2650
|
}
|
|
2587
2651
|
}
|
|
2588
|
-
if (options &&
|
|
2589
|
-
command.push(
|
|
2652
|
+
if (options?.select && Object.keys(options.select).length > 0) {
|
|
2653
|
+
command.push(
|
|
2654
|
+
"RETURN",
|
|
2655
|
+
Object.keys(options.select).length.toString(),
|
|
2656
|
+
...Object.keys(options.select)
|
|
2657
|
+
);
|
|
2590
2658
|
}
|
|
2591
2659
|
return command;
|
|
2592
2660
|
}
|
|
2593
2661
|
function buildCreateIndexCommand(props) {
|
|
2594
|
-
const {
|
|
2662
|
+
const { name, schema, dataType, prefix, language } = props;
|
|
2595
2663
|
const prefixArray = Array.isArray(prefix) ? prefix : [prefix];
|
|
2596
2664
|
const payload = [
|
|
2597
|
-
|
|
2665
|
+
name,
|
|
2598
2666
|
"ON",
|
|
2599
2667
|
dataType.toUpperCase(),
|
|
2600
2668
|
"PREFIX",
|
|
@@ -2621,65 +2689,58 @@ function buildCreateIndexCommand(props) {
|
|
|
2621
2689
|
|
|
2622
2690
|
// pkg/commands/search/search.ts
|
|
2623
2691
|
var SearchIndex = class {
|
|
2624
|
-
|
|
2692
|
+
name;
|
|
2625
2693
|
schema;
|
|
2626
2694
|
client;
|
|
2627
|
-
constructor({
|
|
2628
|
-
this.
|
|
2695
|
+
constructor({ name, schema, client }) {
|
|
2696
|
+
this.name = name;
|
|
2629
2697
|
this.schema = schema;
|
|
2630
2698
|
this.client = client;
|
|
2631
2699
|
}
|
|
2632
2700
|
async waitIndexing() {
|
|
2633
|
-
|
|
2701
|
+
const command = ["SEARCH.COMMIT", this.name];
|
|
2634
2702
|
const result = await new ExecCommand(command).exec(
|
|
2635
2703
|
this.client
|
|
2636
2704
|
);
|
|
2637
2705
|
return result;
|
|
2638
2706
|
}
|
|
2639
2707
|
async describe() {
|
|
2640
|
-
|
|
2708
|
+
const command = ["SEARCH.DESCRIBE", this.name];
|
|
2641
2709
|
const rawResult = await new ExecCommand(command).exec(
|
|
2642
2710
|
this.client
|
|
2643
2711
|
);
|
|
2644
|
-
return
|
|
2645
|
-
}
|
|
2646
|
-
async query(
|
|
2647
|
-
const
|
|
2648
|
-
const command = buildQueryCommand(
|
|
2649
|
-
"SEARCH.QUERY",
|
|
2650
|
-
this.indexName,
|
|
2651
|
-
queryString,
|
|
2652
|
-
options
|
|
2653
|
-
);
|
|
2712
|
+
return deserializeDescribeResponse(rawResult);
|
|
2713
|
+
}
|
|
2714
|
+
async query(options) {
|
|
2715
|
+
const command = buildQueryCommand("SEARCH.QUERY", this.name, options);
|
|
2654
2716
|
const rawResult = await new ExecCommand(command).exec(
|
|
2655
2717
|
this.client
|
|
2656
2718
|
);
|
|
2657
|
-
return
|
|
2719
|
+
return deserializeQueryResponse(rawResult, options);
|
|
2658
2720
|
}
|
|
2659
|
-
async count(filter) {
|
|
2660
|
-
const
|
|
2661
|
-
const command = buildQueryCommand("SEARCH.COUNT", this.indexName, queryString);
|
|
2721
|
+
async count({ filter }) {
|
|
2722
|
+
const command = buildQueryCommand("SEARCH.COUNT", this.name, { filter });
|
|
2662
2723
|
const rawResult = await new ExecCommand(command).exec(
|
|
2663
2724
|
this.client
|
|
2664
2725
|
);
|
|
2665
|
-
return parseCountResponse(rawResult);
|
|
2726
|
+
return { count: parseCountResponse(rawResult) };
|
|
2666
2727
|
}
|
|
2667
2728
|
async drop() {
|
|
2668
|
-
|
|
2729
|
+
const command = ["SEARCH.DROP", this.name];
|
|
2669
2730
|
const result = await new ExecCommand(command).exec(
|
|
2670
2731
|
this.client
|
|
2671
2732
|
);
|
|
2672
2733
|
return result;
|
|
2673
2734
|
}
|
|
2674
2735
|
};
|
|
2675
|
-
async function
|
|
2676
|
-
const {
|
|
2736
|
+
async function createIndex(props) {
|
|
2737
|
+
const { name, schema, client } = props;
|
|
2677
2738
|
const createIndexCommand = buildCreateIndexCommand(props);
|
|
2678
2739
|
await new ExecCommand(createIndexCommand).exec(client);
|
|
2679
|
-
return
|
|
2740
|
+
return index(client, name, schema);
|
|
2680
2741
|
}
|
|
2681
|
-
function
|
|
2682
|
-
return new SearchIndex(
|
|
2742
|
+
function index(client, name, schema) {
|
|
2743
|
+
return new SearchIndex({ name, schema, client });
|
|
2683
2744
|
}
|
|
2684
2745
|
|
|
2685
2746
|
// pkg/commands/search/schema-builder.ts
|
|
@@ -2705,21 +2766,16 @@ var TextFieldBuilder = class _TextFieldBuilder {
|
|
|
2705
2766
|
} : "TEXT";
|
|
2706
2767
|
}
|
|
2707
2768
|
};
|
|
2708
|
-
var NumericFieldBuilder = class
|
|
2709
|
-
_fast;
|
|
2769
|
+
var NumericFieldBuilder = class {
|
|
2710
2770
|
type;
|
|
2711
|
-
constructor(type
|
|
2771
|
+
constructor(type) {
|
|
2712
2772
|
this.type = type;
|
|
2713
|
-
this._fast = fast;
|
|
2714
|
-
}
|
|
2715
|
-
fast() {
|
|
2716
|
-
return new _NumericFieldBuilder(this.type, { fast: true });
|
|
2717
2773
|
}
|
|
2718
2774
|
[BUILD]() {
|
|
2719
|
-
return
|
|
2775
|
+
return {
|
|
2720
2776
|
type: this.type,
|
|
2721
2777
|
fast: true
|
|
2722
|
-
}
|
|
2778
|
+
};
|
|
2723
2779
|
}
|
|
2724
2780
|
};
|
|
2725
2781
|
var BoolFieldBuilder = class _BoolFieldBuilder {
|
|
@@ -3326,7 +3382,7 @@ var Pipeline = class {
|
|
|
3326
3382
|
/**
|
|
3327
3383
|
* @see https://redis.io/commands/lset
|
|
3328
3384
|
*/
|
|
3329
|
-
lset = (key,
|
|
3385
|
+
lset = (key, index2, value) => this.chain(new LSetCommand([key, index2, value], this.commandOptions));
|
|
3330
3386
|
/**
|
|
3331
3387
|
* @see https://redis.io/commands/ltrim
|
|
3332
3388
|
*/
|
|
@@ -4089,18 +4145,19 @@ var Redis = class {
|
|
|
4089
4145
|
createScript(script, opts) {
|
|
4090
4146
|
return opts?.readonly ? new ScriptRO(this, script) : new Script(this, script);
|
|
4091
4147
|
}
|
|
4092
|
-
|
|
4093
|
-
return
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4148
|
+
get search() {
|
|
4149
|
+
return {
|
|
4150
|
+
createIndex: (props) => {
|
|
4151
|
+
return createIndex({
|
|
4152
|
+
...props,
|
|
4153
|
+
client: this.client
|
|
4154
|
+
});
|
|
4155
|
+
},
|
|
4156
|
+
index: (name, schema) => {
|
|
4157
|
+
return index(this.client, name, schema);
|
|
4158
|
+
}
|
|
4159
|
+
};
|
|
4160
|
+
}
|
|
4104
4161
|
/**
|
|
4105
4162
|
* Create a new pipeline that allows you to send requests in bulk.
|
|
4106
4163
|
*
|
|
@@ -4437,7 +4494,7 @@ var Redis = class {
|
|
|
4437
4494
|
/**
|
|
4438
4495
|
* @see https://redis.io/commands/lset
|
|
4439
4496
|
*/
|
|
4440
|
-
lset = (key,
|
|
4497
|
+
lset = (key, index2, value) => new LSetCommand([key, index2, value], this.opts).exec(this.client);
|
|
4441
4498
|
/**
|
|
4442
4499
|
* @see https://redis.io/commands/ltrim
|
|
4443
4500
|
*/
|
|
@@ -4808,7 +4865,7 @@ var Redis = class {
|
|
|
4808
4865
|
};
|
|
4809
4866
|
|
|
4810
4867
|
// version.ts
|
|
4811
|
-
var VERSION = "v1.36.0-rc.
|
|
4868
|
+
var VERSION = "v1.36.0-rc.3";
|
|
4812
4869
|
|
|
4813
4870
|
// platforms/cloudflare.ts
|
|
4814
4871
|
var Redis2 = class _Redis extends Redis {
|
package/cloudflare.mjs
CHANGED
package/fastly.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RedisOptions,
|
|
2
|
-
export { A as AppendCommand, B as BitCountCommand,
|
|
1
|
+
import { R as RedisOptions, b as RequesterConfig, c as Redis$1 } from './zmscore-DQw_6S0p.mjs';
|
|
2
|
+
export { A as AppendCommand, B as BitCountCommand, g as BitOpCommand, h as BitPosCommand, C as CopyCommand, D as DBSizeCommand, j as DecrByCommand, i as DecrCommand, k as DelCommand, E as EchoCommand, m as EvalCommand, l as EvalROCommand, o as EvalshaCommand, n as EvalshaROCommand, p as ExistsCommand, s as ExpireAtCommand, q as ExpireCommand, r as ExpireOption, F as FlushAllCommand, t as FlushDBCommand, G as GeoAddCommand, u as GeoAddCommandOptions, w as GeoDistCommand, x as GeoHashCommand, v as GeoMember, y as GeoPosCommand, z as GeoSearchCommand, I as GeoSearchStoreCommand, K as GetBitCommand, J as GetCommand, L as GetDelCommand, M as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HIncrByCommand, a5 as HIncrByFloatCommand, a6 as HKeysCommand, a7 as HLenCommand, a8 as HMGetCommand, a9 as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, aa as HRandFieldCommand, ab as HScanCommand, ac as HSetCommand, ad as HSetNXCommand, ae as HStrLenCommand, Y as HTtlCommand, af as HValsCommand, ah as IncrByCommand, ai as IncrByFloatCommand, ag as IncrCommand, aj as JsonArrAppendCommand, ak as JsonArrIndexCommand, al as JsonArrInsertCommand, am as JsonArrLenCommand, an as JsonArrPopCommand, ao as JsonArrTrimCommand, ap as JsonClearCommand, aq as JsonDelCommand, ar as JsonForgetCommand, as as JsonGetCommand, au as JsonMGetCommand, at as JsonMergeCommand, av as JsonNumIncrByCommand, aw as JsonNumMultByCommand, ax as JsonObjKeysCommand, ay as JsonObjLenCommand, az as JsonRespCommand, aA as JsonSetCommand, aB as JsonStrAppendCommand, aC as JsonStrLenCommand, aD as JsonToggleCommand, aE as JsonTypeCommand, aF as KeysCommand, aG as LIndexCommand, aH as LInsertCommand, aI as LLenCommand, aJ as LMoveCommand, aK as LPopCommand, aL as LPushCommand, aM as LPushXCommand, aN as LRangeCommand, aO as LRemCommand, aP as LSetCommand, aQ as LTrimCommand, aR as MGetCommand, aS as MSetCommand, aT as MSetNXCommand, aW as PExpireAtCommand, aV as PExpireCommand, aY as PSetEXCommand, aZ as PTtlCommand, aU as PersistCommand, aX as PingCommand, P as Pipeline, a_ as PublishCommand, b2 as RPopCommand, b3 as RPushCommand, b4 as RPushXCommand, a$ as RandomKeyCommand, b0 as RenameCommand, b1 as RenameNXCommand, d as Requester, b5 as SAddCommand, b8 as SCardCommand, bc as SDiffCommand, bd as SDiffStoreCommand, bk as SInterCommand, bl as SInterStoreCommand, bm as SIsMemberCommand, bo as SMIsMemberCommand, bn as SMembersCommand, bp as SMoveCommand, bq as SPopCommand, br as SRandMemberCommand, bs as SRemCommand, bt as SScanCommand, bv as SUnionCommand, bw as SUnionStoreCommand, b6 as ScanCommand, b7 as ScanCommandOptions, bF as ScoreMember, b9 as ScriptExistsCommand, ba as ScriptFlushCommand, bb as ScriptLoadCommand, bg as SetBitCommand, be as SetCommand, bf as SetCommandOptions, bh as SetExCommand, bi as SetNxCommand, bj as SetRangeCommand, bu as StrLenCommand, bx as TimeCommand, by as TouchCommand, bz as TtlCommand, bA as Type, bB as TypeCommand, bC as UnlinkCommand, U as UpstashRequest, f as UpstashResponse, bD as XAddCommand, bE as XRangeCommand, bH as ZAddCommand, bG as ZAddCommandOptions, bI as ZCardCommand, bJ as ZCountCommand, bK as ZDiffStoreCommand, bL as ZIncrByCommand, bM as ZInterStoreCommand, bN as ZInterStoreCommandOptions, bO as ZLexCountCommand, bP as ZMScoreCommand, bQ as ZPopMaxCommand, bR as ZPopMinCommand, bS as ZRangeCommand, bT as ZRangeCommandOptions, bU as ZRankCommand, bV as ZRemCommand, bW as ZRemRangeByLexCommand, bX as ZRemRangeByRankCommand, bY as ZRemRangeByScoreCommand, bZ as ZRevRankCommand, b_ as ZScanCommand, b$ as ZScoreCommand, c0 as ZUnionCommand, c1 as ZUnionCommandOptions, c2 as ZUnionStoreCommand, c3 as ZUnionStoreCommandOptions, e as errors } from './zmscore-DQw_6S0p.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Connection credentials for upstash redis.
|
package/fastly.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RedisOptions,
|
|
2
|
-
export { A as AppendCommand, B as BitCountCommand,
|
|
1
|
+
import { R as RedisOptions, b as RequesterConfig, c as Redis$1 } from './zmscore-DQw_6S0p.js';
|
|
2
|
+
export { A as AppendCommand, B as BitCountCommand, g as BitOpCommand, h as BitPosCommand, C as CopyCommand, D as DBSizeCommand, j as DecrByCommand, i as DecrCommand, k as DelCommand, E as EchoCommand, m as EvalCommand, l as EvalROCommand, o as EvalshaCommand, n as EvalshaROCommand, p as ExistsCommand, s as ExpireAtCommand, q as ExpireCommand, r as ExpireOption, F as FlushAllCommand, t as FlushDBCommand, G as GeoAddCommand, u as GeoAddCommandOptions, w as GeoDistCommand, x as GeoHashCommand, v as GeoMember, y as GeoPosCommand, z as GeoSearchCommand, I as GeoSearchStoreCommand, K as GetBitCommand, J as GetCommand, L as GetDelCommand, M as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HIncrByCommand, a5 as HIncrByFloatCommand, a6 as HKeysCommand, a7 as HLenCommand, a8 as HMGetCommand, a9 as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, aa as HRandFieldCommand, ab as HScanCommand, ac as HSetCommand, ad as HSetNXCommand, ae as HStrLenCommand, Y as HTtlCommand, af as HValsCommand, ah as IncrByCommand, ai as IncrByFloatCommand, ag as IncrCommand, aj as JsonArrAppendCommand, ak as JsonArrIndexCommand, al as JsonArrInsertCommand, am as JsonArrLenCommand, an as JsonArrPopCommand, ao as JsonArrTrimCommand, ap as JsonClearCommand, aq as JsonDelCommand, ar as JsonForgetCommand, as as JsonGetCommand, au as JsonMGetCommand, at as JsonMergeCommand, av as JsonNumIncrByCommand, aw as JsonNumMultByCommand, ax as JsonObjKeysCommand, ay as JsonObjLenCommand, az as JsonRespCommand, aA as JsonSetCommand, aB as JsonStrAppendCommand, aC as JsonStrLenCommand, aD as JsonToggleCommand, aE as JsonTypeCommand, aF as KeysCommand, aG as LIndexCommand, aH as LInsertCommand, aI as LLenCommand, aJ as LMoveCommand, aK as LPopCommand, aL as LPushCommand, aM as LPushXCommand, aN as LRangeCommand, aO as LRemCommand, aP as LSetCommand, aQ as LTrimCommand, aR as MGetCommand, aS as MSetCommand, aT as MSetNXCommand, aW as PExpireAtCommand, aV as PExpireCommand, aY as PSetEXCommand, aZ as PTtlCommand, aU as PersistCommand, aX as PingCommand, P as Pipeline, a_ as PublishCommand, b2 as RPopCommand, b3 as RPushCommand, b4 as RPushXCommand, a$ as RandomKeyCommand, b0 as RenameCommand, b1 as RenameNXCommand, d as Requester, b5 as SAddCommand, b8 as SCardCommand, bc as SDiffCommand, bd as SDiffStoreCommand, bk as SInterCommand, bl as SInterStoreCommand, bm as SIsMemberCommand, bo as SMIsMemberCommand, bn as SMembersCommand, bp as SMoveCommand, bq as SPopCommand, br as SRandMemberCommand, bs as SRemCommand, bt as SScanCommand, bv as SUnionCommand, bw as SUnionStoreCommand, b6 as ScanCommand, b7 as ScanCommandOptions, bF as ScoreMember, b9 as ScriptExistsCommand, ba as ScriptFlushCommand, bb as ScriptLoadCommand, bg as SetBitCommand, be as SetCommand, bf as SetCommandOptions, bh as SetExCommand, bi as SetNxCommand, bj as SetRangeCommand, bu as StrLenCommand, bx as TimeCommand, by as TouchCommand, bz as TtlCommand, bA as Type, bB as TypeCommand, bC as UnlinkCommand, U as UpstashRequest, f as UpstashResponse, bD as XAddCommand, bE as XRangeCommand, bH as ZAddCommand, bG as ZAddCommandOptions, bI as ZCardCommand, bJ as ZCountCommand, bK as ZDiffStoreCommand, bL as ZIncrByCommand, bM as ZInterStoreCommand, bN as ZInterStoreCommandOptions, bO as ZLexCountCommand, bP as ZMScoreCommand, bQ as ZPopMaxCommand, bR as ZPopMinCommand, bS as ZRangeCommand, bT as ZRangeCommandOptions, bU as ZRankCommand, bV as ZRemCommand, bW as ZRemRangeByLexCommand, bX as ZRemRangeByRankCommand, bY as ZRemRangeByScoreCommand, bZ as ZRevRankCommand, b_ as ZScanCommand, b$ as ZScoreCommand, c0 as ZUnionCommand, c1 as ZUnionCommandOptions, c2 as ZUnionStoreCommand, c3 as ZUnionStoreCommandOptions, e as errors } from './zmscore-DQw_6S0p.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Connection credentials for upstash redis.
|