@redis/json 5.5.5 → 5.5.6
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/dist/lib/commands/ARRAPPEND.d.ts +10 -0
- package/dist/lib/commands/ARRAPPEND.d.ts.map +1 -1
- package/dist/lib/commands/ARRAPPEND.js +10 -0
- package/dist/lib/commands/ARRAPPEND.js.map +1 -1
- package/dist/lib/commands/ARRINDEX.d.ts +12 -0
- package/dist/lib/commands/ARRINDEX.d.ts.map +1 -1
- package/dist/lib/commands/ARRINDEX.js +12 -0
- package/dist/lib/commands/ARRINDEX.js.map +1 -1
- package/dist/lib/commands/ARRINSERT.d.ts +11 -0
- package/dist/lib/commands/ARRINSERT.d.ts.map +1 -1
- package/dist/lib/commands/ARRINSERT.js +11 -0
- package/dist/lib/commands/ARRINSERT.js.map +1 -1
- package/dist/lib/commands/ARRLEN.d.ts +9 -0
- package/dist/lib/commands/ARRLEN.d.ts.map +1 -1
- package/dist/lib/commands/ARRLEN.js +9 -0
- package/dist/lib/commands/ARRLEN.js.map +1 -1
- package/dist/lib/commands/ARRPOP.d.ts +10 -0
- package/dist/lib/commands/ARRPOP.d.ts.map +1 -1
- package/dist/lib/commands/ARRPOP.js +10 -0
- package/dist/lib/commands/ARRPOP.js.map +1 -1
- package/dist/lib/commands/ARRTRIM.d.ts +10 -0
- package/dist/lib/commands/ARRTRIM.d.ts.map +1 -1
- package/dist/lib/commands/ARRTRIM.js +10 -0
- package/dist/lib/commands/ARRTRIM.js.map +1 -1
- package/dist/lib/commands/CLEAR.d.ts +9 -0
- package/dist/lib/commands/CLEAR.d.ts.map +1 -1
- package/dist/lib/commands/CLEAR.js +9 -0
- package/dist/lib/commands/CLEAR.js.map +1 -1
- package/dist/lib/commands/DEBUG_MEMORY.d.ts +9 -0
- package/dist/lib/commands/DEBUG_MEMORY.d.ts.map +1 -1
- package/dist/lib/commands/DEBUG_MEMORY.js +9 -0
- package/dist/lib/commands/DEBUG_MEMORY.js.map +1 -1
- package/dist/lib/commands/DEL.d.ts +9 -0
- package/dist/lib/commands/DEL.d.ts.map +1 -1
- package/dist/lib/commands/DEL.js +9 -0
- package/dist/lib/commands/DEL.js.map +1 -1
- package/dist/lib/commands/FORGET.d.ts +9 -0
- package/dist/lib/commands/FORGET.d.ts.map +1 -1
- package/dist/lib/commands/FORGET.js +9 -0
- package/dist/lib/commands/FORGET.js.map +1 -1
- package/dist/lib/commands/GET.d.ts +9 -0
- package/dist/lib/commands/GET.d.ts.map +1 -1
- package/dist/lib/commands/GET.js +9 -0
- package/dist/lib/commands/GET.js.map +1 -1
- package/dist/lib/commands/MERGE.d.ts +9 -0
- package/dist/lib/commands/MERGE.d.ts.map +1 -1
- package/dist/lib/commands/MERGE.js +9 -0
- package/dist/lib/commands/MERGE.js.map +1 -1
- package/dist/lib/commands/MGET.d.ts +8 -0
- package/dist/lib/commands/MGET.d.ts.map +1 -1
- package/dist/lib/commands/MGET.js +8 -0
- package/dist/lib/commands/MGET.js.map +1 -1
- package/dist/lib/commands/MSET.d.ts +10 -0
- package/dist/lib/commands/MSET.d.ts.map +1 -1
- package/dist/lib/commands/MSET.js +10 -0
- package/dist/lib/commands/MSET.js.map +1 -1
- package/dist/lib/commands/NUMINCRBY.d.ts +9 -0
- package/dist/lib/commands/NUMINCRBY.d.ts.map +1 -1
- package/dist/lib/commands/NUMINCRBY.js +9 -0
- package/dist/lib/commands/NUMINCRBY.js.map +1 -1
- package/dist/lib/commands/NUMMULTBY.d.ts +9 -0
- package/dist/lib/commands/NUMMULTBY.d.ts.map +1 -1
- package/dist/lib/commands/NUMMULTBY.js +9 -0
- package/dist/lib/commands/NUMMULTBY.js.map +1 -1
- package/dist/lib/commands/OBJKEYS.d.ts +9 -0
- package/dist/lib/commands/OBJKEYS.d.ts.map +1 -1
- package/dist/lib/commands/OBJKEYS.js +9 -0
- package/dist/lib/commands/OBJKEYS.js.map +1 -1
- package/dist/lib/commands/OBJLEN.d.ts +9 -0
- package/dist/lib/commands/OBJLEN.d.ts.map +1 -1
- package/dist/lib/commands/OBJLEN.js +9 -0
- package/dist/lib/commands/OBJLEN.js.map +1 -1
- package/dist/lib/commands/RESP.d.ts +8 -0
- package/dist/lib/commands/RESP.d.ts.map +1 -1
- package/dist/lib/commands/RESP.js +8 -0
- package/dist/lib/commands/RESP.js.map +1 -1
- package/dist/lib/commands/SET.d.ts +13 -0
- package/dist/lib/commands/SET.d.ts.map +1 -1
- package/dist/lib/commands/SET.js +13 -0
- package/dist/lib/commands/SET.js.map +1 -1
- package/dist/lib/commands/STRAPPEND.d.ts +10 -0
- package/dist/lib/commands/STRAPPEND.d.ts.map +1 -1
- package/dist/lib/commands/STRAPPEND.js +10 -0
- package/dist/lib/commands/STRAPPEND.js.map +1 -1
- package/dist/lib/commands/STRLEN.d.ts +9 -0
- package/dist/lib/commands/STRLEN.d.ts.map +1 -1
- package/dist/lib/commands/STRLEN.js +9 -0
- package/dist/lib/commands/STRLEN.js.map +1 -1
- package/dist/lib/commands/TOGGLE.d.ts +8 -0
- package/dist/lib/commands/TOGGLE.d.ts.map +1 -1
- package/dist/lib/commands/TOGGLE.js +8 -0
- package/dist/lib/commands/TOGGLE.js.map +1 -1
- package/dist/lib/commands/TYPE.d.ts +9 -0
- package/dist/lib/commands/TYPE.d.ts.map +1 -1
- package/dist/lib/commands/TYPE.js +9 -0
- package/dist/lib/commands/TYPE.js.map +1 -1
- package/package.json +2 -2
|
@@ -3,6 +3,16 @@ import { RedisJSON } from './helpers';
|
|
|
3
3
|
import { RedisArgument, NumberReply, ArrayReply, NullReply } from '@redis/client/dist/lib/RESP/types';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
readonly IS_READ_ONLY: false;
|
|
6
|
+
/**
|
|
7
|
+
* Appends one or more values to the end of an array in a JSON document.
|
|
8
|
+
* Returns the new array length after append, or null if the path does not exist.
|
|
9
|
+
*
|
|
10
|
+
* @param parser - The Redis command parser
|
|
11
|
+
* @param key - The key to append to
|
|
12
|
+
* @param path - Path to the array in the JSON document
|
|
13
|
+
* @param json - The first value to append
|
|
14
|
+
* @param jsons - Additional values to append
|
|
15
|
+
*/
|
|
6
16
|
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, path: RedisArgument, json: RedisJSON, ...jsons: Array<RedisJSON>) => void;
|
|
7
17
|
readonly transformReply: () => NumberReply | ArrayReply<NumberReply | NullReply>;
|
|
8
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ARRAPPEND.d.ts","sourceRoot":"","sources":["../../../lib/commands/ARRAPPEND.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,SAAS,EAA8B,MAAM,WAAW,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;;;
|
|
1
|
+
{"version":3,"file":"ARRAPPEND.d.ts","sourceRoot":"","sources":["../../../lib/commands/ARRAPPEND.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,SAAS,EAA8B,MAAM,WAAW,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;;;IAI7G;;;;;;;;;OASG;gDAEO,aAAa,OAChB,aAAa,QACZ,aAAa,QACb,SAAS,YACL,MAAM,SAAS,CAAC;mCAUkB,WAAW,GAAG,WAAW,WAAW,GAAG,SAAS,CAAC;;AA3BjG,wBA4B6B"}
|
|
@@ -3,6 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const helpers_1 = require("./helpers");
|
|
4
4
|
exports.default = {
|
|
5
5
|
IS_READ_ONLY: false,
|
|
6
|
+
/**
|
|
7
|
+
* Appends one or more values to the end of an array in a JSON document.
|
|
8
|
+
* Returns the new array length after append, or null if the path does not exist.
|
|
9
|
+
*
|
|
10
|
+
* @param parser - The Redis command parser
|
|
11
|
+
* @param key - The key to append to
|
|
12
|
+
* @param path - Path to the array in the JSON document
|
|
13
|
+
* @param json - The first value to append
|
|
14
|
+
* @param jsons - Additional values to append
|
|
15
|
+
*/
|
|
6
16
|
parseCommand(parser, key, path, json, ...jsons) {
|
|
7
17
|
parser.push('JSON.ARRAPPEND');
|
|
8
18
|
parser.pushKey(key);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ARRAPPEND.js","sourceRoot":"","sources":["../../../lib/commands/ARRAPPEND.ts"],"names":[],"mappings":";;AACA,uCAAkE;AAGlE,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,IAAmB,EACnB,IAAe,EACf,GAAG,KAAuB;QAE1B,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC9B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAA,oCAA0B,EAAC,IAAI,CAAC,CAAC,CAAC;QAEpD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,MAAM,CAAC,IAAI,CAAC,IAAA,oCAA0B,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACpD,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAA+E;CACrE,CAAC"}
|
|
1
|
+
{"version":3,"file":"ARRAPPEND.js","sourceRoot":"","sources":["../../../lib/commands/ARRAPPEND.ts"],"names":[],"mappings":";;AACA,uCAAkE;AAGlE,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;;OASG;IACH,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,IAAmB,EACnB,IAAe,EACf,GAAG,KAAuB;QAE1B,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC9B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAA,oCAA0B,EAAC,IAAI,CAAC,CAAC,CAAC;QAEpD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,MAAM,CAAC,IAAI,CAAC,IAAA,oCAA0B,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACpD,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAA+E;CACrE,CAAC"}
|
|
@@ -9,6 +9,18 @@ export interface JsonArrIndexOptions {
|
|
|
9
9
|
}
|
|
10
10
|
declare const _default: {
|
|
11
11
|
readonly IS_READ_ONLY: true;
|
|
12
|
+
/**
|
|
13
|
+
* Returns the index of the first occurrence of a value in a JSON array.
|
|
14
|
+
* If the specified value is not found, it returns -1, or null if the path does not exist.
|
|
15
|
+
*
|
|
16
|
+
* @param parser - The Redis command parser
|
|
17
|
+
* @param key - The key containing the array
|
|
18
|
+
* @param path - Path to the array in the JSON document
|
|
19
|
+
* @param json - The value to search for
|
|
20
|
+
* @param options - Optional range parameters for the search
|
|
21
|
+
* @param options.range.start - Starting index for the search
|
|
22
|
+
* @param options.range.stop - Optional ending index for the search
|
|
23
|
+
*/
|
|
12
24
|
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, path: RedisArgument, json: RedisJSON, options?: JsonArrIndexOptions) => void;
|
|
13
25
|
readonly transformReply: () => NumberReply | ArrayReply<NumberReply | NullReply>;
|
|
14
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ARRINDEX.d.ts","sourceRoot":"","sources":["../../../lib/commands/ARRINDEX.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;AAC/G,OAAO,EAAE,SAAS,EAA8B,MAAM,WAAW,CAAC;AAElE,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH;;;
|
|
1
|
+
{"version":3,"file":"ARRINDEX.d.ts","sourceRoot":"","sources":["../../../lib/commands/ARRINDEX.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;AAC/G,OAAO,EAAE,SAAS,EAA8B,MAAM,WAAW,CAAC;AAElE,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH;;;IAIC;;;;;;;;;;;OAWG;gDAEO,aAAa,OAChB,aAAa,QACZ,aAAa,QACb,SAAS,YACL,mBAAmB;mCAce,WAAW,GAAG,WAAW,WAAW,GAAG,SAAS,CAAC;;AAjCjG,wBAkC6B"}
|
|
@@ -3,6 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const helpers_1 = require("./helpers");
|
|
4
4
|
exports.default = {
|
|
5
5
|
IS_READ_ONLY: true,
|
|
6
|
+
/**
|
|
7
|
+
* Returns the index of the first occurrence of a value in a JSON array.
|
|
8
|
+
* If the specified value is not found, it returns -1, or null if the path does not exist.
|
|
9
|
+
*
|
|
10
|
+
* @param parser - The Redis command parser
|
|
11
|
+
* @param key - The key containing the array
|
|
12
|
+
* @param path - Path to the array in the JSON document
|
|
13
|
+
* @param json - The value to search for
|
|
14
|
+
* @param options - Optional range parameters for the search
|
|
15
|
+
* @param options.range.start - Starting index for the search
|
|
16
|
+
* @param options.range.stop - Optional ending index for the search
|
|
17
|
+
*/
|
|
6
18
|
parseCommand(parser, key, path, json, options) {
|
|
7
19
|
parser.push('JSON.ARRINDEX');
|
|
8
20
|
parser.pushKey(key);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ARRINDEX.js","sourceRoot":"","sources":["../../../lib/commands/ARRINDEX.ts"],"names":[],"mappings":";;AAEA,uCAAkE;AASlE,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,IAAmB,EACnB,IAAe,EACf,OAA6B;QAE7B,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAC7B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAA,oCAA0B,EAAC,IAAI,CAAC,CAAC,CAAC;QAEpD,IAAI,OAAO,EAAE,KAAK,EAAE,CAAC;YACnB,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;YAE5C,IAAI,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;gBACrC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC7C,CAAC;QACH,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAA+E;CACrE,CAAC"}
|
|
1
|
+
{"version":3,"file":"ARRINDEX.js","sourceRoot":"","sources":["../../../lib/commands/ARRINDEX.ts"],"names":[],"mappings":";;AAEA,uCAAkE;AASlE,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB;;;;;;;;;;;OAWG;IACH,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,IAAmB,EACnB,IAAe,EACf,OAA6B;QAE7B,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAC7B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAA,oCAA0B,EAAC,IAAI,CAAC,CAAC,CAAC;QAEpD,IAAI,OAAO,EAAE,KAAK,EAAE,CAAC;YACnB,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;YAE5C,IAAI,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;gBACrC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC7C,CAAC;QACH,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAA+E;CACrE,CAAC"}
|
|
@@ -3,6 +3,17 @@ import { RedisArgument, NumberReply, ArrayReply, NullReply } from '@redis/client
|
|
|
3
3
|
import { RedisJSON } from './helpers';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
readonly IS_READ_ONLY: false;
|
|
6
|
+
/**
|
|
7
|
+
* Inserts one or more values into an array at the specified index.
|
|
8
|
+
* Returns the new array length after insert, or null if the path does not exist.
|
|
9
|
+
*
|
|
10
|
+
* @param parser - The Redis command parser
|
|
11
|
+
* @param key - The key containing the array
|
|
12
|
+
* @param path - Path to the array in the JSON document
|
|
13
|
+
* @param index - The position where to insert the values
|
|
14
|
+
* @param json - The first value to insert
|
|
15
|
+
* @param jsons - Additional values to insert
|
|
16
|
+
*/
|
|
6
17
|
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, path: RedisArgument, index: number, json: RedisJSON, ...jsons: Array<RedisJSON>) => void;
|
|
7
18
|
readonly transformReply: () => NumberReply | ArrayReply<NumberReply | NullReply>;
|
|
8
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ARRINSERT.d.ts","sourceRoot":"","sources":["../../../lib/commands/ARRINSERT.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;AAC/G,OAAO,EAAE,SAAS,EAA8B,MAAM,WAAW,CAAC;;;
|
|
1
|
+
{"version":3,"file":"ARRINSERT.d.ts","sourceRoot":"","sources":["../../../lib/commands/ARRINSERT.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;AAC/G,OAAO,EAAE,SAAS,EAA8B,MAAM,WAAW,CAAC;;;IAIhE;;;;;;;;;;OAUG;gDAEO,aAAa,OAChB,aAAa,QACZ,aAAa,SACZ,MAAM,QACP,SAAS,YACL,MAAM,SAAS,CAAC;mCAUkB,WAAW,GAAG,WAAW,WAAW,GAAG,SAAS,CAAC;;AA7BjG,wBA8B6B"}
|
|
@@ -3,6 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const helpers_1 = require("./helpers");
|
|
4
4
|
exports.default = {
|
|
5
5
|
IS_READ_ONLY: false,
|
|
6
|
+
/**
|
|
7
|
+
* Inserts one or more values into an array at the specified index.
|
|
8
|
+
* Returns the new array length after insert, or null if the path does not exist.
|
|
9
|
+
*
|
|
10
|
+
* @param parser - The Redis command parser
|
|
11
|
+
* @param key - The key containing the array
|
|
12
|
+
* @param path - Path to the array in the JSON document
|
|
13
|
+
* @param index - The position where to insert the values
|
|
14
|
+
* @param json - The first value to insert
|
|
15
|
+
* @param jsons - Additional values to insert
|
|
16
|
+
*/
|
|
6
17
|
parseCommand(parser, key, path, index, json, ...jsons) {
|
|
7
18
|
parser.push('JSON.ARRINSERT');
|
|
8
19
|
parser.pushKey(key);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ARRINSERT.js","sourceRoot":"","sources":["../../../lib/commands/ARRINSERT.ts"],"names":[],"mappings":";;AAEA,uCAAkE;AAElE,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,IAAmB,EACnB,KAAa,EACb,IAAe,EACf,GAAG,KAAuB;QAE1B,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC9B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,EAAE,EAAE,IAAA,oCAA0B,EAAC,IAAI,CAAC,CAAC,CAAC;QAEtE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,MAAM,CAAC,IAAI,CAAC,IAAA,oCAA0B,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACpD,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAA+E;CACrE,CAAC"}
|
|
1
|
+
{"version":3,"file":"ARRINSERT.js","sourceRoot":"","sources":["../../../lib/commands/ARRINSERT.ts"],"names":[],"mappings":";;AAEA,uCAAkE;AAElE,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;;;OAUG;IACH,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,IAAmB,EACnB,KAAa,EACb,IAAe,EACf,GAAG,KAAuB;QAE1B,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC9B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,EAAE,EAAE,IAAA,oCAA0B,EAAC,IAAI,CAAC,CAAC,CAAC;QAEtE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,MAAM,CAAC,IAAI,CAAC,IAAA,oCAA0B,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACpD,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAA+E;CACrE,CAAC"}
|
|
@@ -5,6 +5,15 @@ export interface JsonArrLenOptions {
|
|
|
5
5
|
}
|
|
6
6
|
declare const _default: {
|
|
7
7
|
readonly IS_READ_ONLY: true;
|
|
8
|
+
/**
|
|
9
|
+
* Returns the length of an array in a JSON document.
|
|
10
|
+
* Returns null if the path does not exist or the value is not an array.
|
|
11
|
+
*
|
|
12
|
+
* @param parser - The Redis command parser
|
|
13
|
+
* @param key - The key containing the array
|
|
14
|
+
* @param options - Optional parameters
|
|
15
|
+
* @param options.path - Path to the array in the JSON document
|
|
16
|
+
*/
|
|
8
17
|
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, options?: JsonArrLenOptions) => void;
|
|
9
18
|
readonly transformReply: () => NumberReply | ArrayReply<NumberReply | NullReply>;
|
|
10
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ARRLEN.d.ts","sourceRoot":"","sources":["../../../lib/commands/ARRLEN.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;AAE/G,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;;;
|
|
1
|
+
{"version":3,"file":"ARRLEN.d.ts","sourceRoot":"","sources":["../../../lib/commands/ARRLEN.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;AAE/G,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;;;IAIC;;;;;;;;OAQG;gDACkB,aAAa,OAAO,aAAa,YAAY,iBAAiB;mCAOrC,WAAW,GAAG,WAAW,WAAW,GAAG,SAAS,CAAC;;AAlBjG,wBAmB6B"}
|
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
4
|
IS_READ_ONLY: true,
|
|
5
|
+
/**
|
|
6
|
+
* Returns the length of an array in a JSON document.
|
|
7
|
+
* Returns null if the path does not exist or the value is not an array.
|
|
8
|
+
*
|
|
9
|
+
* @param parser - The Redis command parser
|
|
10
|
+
* @param key - The key containing the array
|
|
11
|
+
* @param options - Optional parameters
|
|
12
|
+
* @param options.path - Path to the array in the JSON document
|
|
13
|
+
*/
|
|
5
14
|
parseCommand(parser, key, options) {
|
|
6
15
|
parser.push('JSON.ARRLEN');
|
|
7
16
|
parser.pushKey(key);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ARRLEN.js","sourceRoot":"","sources":["../../../lib/commands/ARRLEN.ts"],"names":[],"mappings":";;AAOA,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,OAA2B;QACjF,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,IAAI,OAAO,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAA+E;CACrE,CAAC"}
|
|
1
|
+
{"version":3,"file":"ARRLEN.js","sourceRoot":"","sources":["../../../lib/commands/ARRLEN.ts"],"names":[],"mappings":";;AAOA,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB;;;;;;;;OAQG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,OAA2B;QACjF,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,IAAI,OAAO,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAA+E;CACrE,CAAC"}
|
|
@@ -6,6 +6,16 @@ export interface RedisArrPopOptions {
|
|
|
6
6
|
}
|
|
7
7
|
declare const _default: {
|
|
8
8
|
readonly IS_READ_ONLY: false;
|
|
9
|
+
/**
|
|
10
|
+
* Removes and returns an element from an array in a JSON document.
|
|
11
|
+
* Returns null if the path does not exist or the value is not an array.
|
|
12
|
+
*
|
|
13
|
+
* @param parser - The Redis command parser
|
|
14
|
+
* @param key - The key containing the array
|
|
15
|
+
* @param options - Optional parameters
|
|
16
|
+
* @param options.path - Path to the array in the JSON document
|
|
17
|
+
* @param options.index - Optional index to pop from. Default is -1 (last element)
|
|
18
|
+
*/
|
|
9
19
|
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, options?: RedisArrPopOptions) => void;
|
|
10
20
|
readonly transformReply: (this: void, reply: NullReply | BlobStringReply | ArrayReply<NullReply | BlobStringReply>) => string | number | boolean | NullReply | Date | {
|
|
11
21
|
[key: string]: import("./helpers").RedisJSON;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ARRPOP.d.ts","sourceRoot":"","sources":["../../../lib/commands/ARRPOP.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAwB,MAAM,mCAAmC,CAAC;AAIhI,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;;;
|
|
1
|
+
{"version":3,"file":"ARRPOP.d.ts","sourceRoot":"","sources":["../../../lib/commands/ARRPOP.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAwB,MAAM,mCAAmC,CAAC;AAIhI,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;;;IAIC;;;;;;;;;OASG;gDACkB,aAAa,OAAO,aAAa,YAAY,kBAAkB;iDAY9D,SAAS,GAAG,eAAe,GAAG,WAAW,SAAS,GAAG,eAAe,CAAC;;;;;AAxB7F,wBA6B6B"}
|
|
@@ -4,6 +4,16 @@ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-
|
|
|
4
4
|
const helpers_1 = require("./helpers");
|
|
5
5
|
exports.default = {
|
|
6
6
|
IS_READ_ONLY: false,
|
|
7
|
+
/**
|
|
8
|
+
* Removes and returns an element from an array in a JSON document.
|
|
9
|
+
* Returns null if the path does not exist or the value is not an array.
|
|
10
|
+
*
|
|
11
|
+
* @param parser - The Redis command parser
|
|
12
|
+
* @param key - The key containing the array
|
|
13
|
+
* @param options - Optional parameters
|
|
14
|
+
* @param options.path - Path to the array in the JSON document
|
|
15
|
+
* @param options.index - Optional index to pop from. Default is -1 (last element)
|
|
16
|
+
*/
|
|
7
17
|
parseCommand(parser, key, options) {
|
|
8
18
|
parser.push('JSON.ARRPOP');
|
|
9
19
|
parser.pushKey(key);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ARRPOP.js","sourceRoot":"","sources":["../../../lib/commands/ARRPOP.ts"],"names":[],"mappings":";;AAEA,+FAAoF;AACpF,uCAAwD;AAOxD,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,OAA4B;QAClF,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,IAAI,OAAO,EAAE,CAAC;YACZ,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAE1B,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;gBAChC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;YACxC,CAAC;QACH,CAAC;IACH,CAAC;IACD,cAAc,CAAC,KAA4E;QACzF,OAAO,IAAA,mCAAY,EAAC,KAAK,CAAC,CAAC,CAAC;YACzB,KAA8C,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAA,qCAA2B,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAChG,IAAA,qCAA2B,EAAC,KAAK,CAAC,CAAC;IACvC,CAAC;CACyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"ARRPOP.js","sourceRoot":"","sources":["../../../lib/commands/ARRPOP.ts"],"names":[],"mappings":";;AAEA,+FAAoF;AACpF,uCAAwD;AAOxD,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;;OASG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,OAA4B;QAClF,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,IAAI,OAAO,EAAE,CAAC;YACZ,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAE1B,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;gBAChC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;YACxC,CAAC;QACH,CAAC;IACH,CAAC;IACD,cAAc,CAAC,KAA4E;QACzF,OAAO,IAAA,mCAAY,EAAC,KAAK,CAAC,CAAC,CAAC;YACzB,KAA8C,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAA,qCAA2B,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAChG,IAAA,qCAA2B,EAAC,KAAK,CAAC,CAAC;IACvC,CAAC;CACyB,CAAC"}
|
|
@@ -2,6 +2,16 @@ import { CommandParser } from '@redis/client/dist/lib/client/parser';
|
|
|
2
2
|
import { RedisArgument, ArrayReply, NumberReply, NullReply } from '@redis/client/dist/lib/RESP/types';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
readonly IS_READ_ONLY: false;
|
|
5
|
+
/**
|
|
6
|
+
* Trims an array in a JSON document to include only elements within the specified range.
|
|
7
|
+
* Returns the new array length after trimming, or null if the path does not exist.
|
|
8
|
+
*
|
|
9
|
+
* @param parser - The Redis command parser
|
|
10
|
+
* @param key - The key containing the array
|
|
11
|
+
* @param path - Path to the array in the JSON document
|
|
12
|
+
* @param start - Starting index (inclusive)
|
|
13
|
+
* @param stop - Ending index (inclusive)
|
|
14
|
+
*/
|
|
5
15
|
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, path: RedisArgument, start: number, stop: number) => void;
|
|
6
16
|
readonly transformReply: () => NumberReply | ArrayReply<NumberReply | NullReply>;
|
|
7
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ARRTRIM.d.ts","sourceRoot":"","sources":["../../../lib/commands/ARRTRIM.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;;;
|
|
1
|
+
{"version":3,"file":"ARRTRIM.d.ts","sourceRoot":"","sources":["../../../lib/commands/ARRTRIM.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;;;IAI7G;;;;;;;;;OASG;gDACkB,aAAa,OAAO,aAAa,QAAQ,aAAa,SAAS,MAAM,QAAQ,MAAM;mCAK1D,WAAW,GAAG,WAAW,WAAW,GAAG,SAAS,CAAC;;AAjBjG,wBAkB6B"}
|
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
4
|
IS_READ_ONLY: false,
|
|
5
|
+
/**
|
|
6
|
+
* Trims an array in a JSON document to include only elements within the specified range.
|
|
7
|
+
* Returns the new array length after trimming, or null if the path does not exist.
|
|
8
|
+
*
|
|
9
|
+
* @param parser - The Redis command parser
|
|
10
|
+
* @param key - The key containing the array
|
|
11
|
+
* @param path - Path to the array in the JSON document
|
|
12
|
+
* @param start - Starting index (inclusive)
|
|
13
|
+
* @param stop - Ending index (inclusive)
|
|
14
|
+
*/
|
|
5
15
|
parseCommand(parser, key, path, start, stop) {
|
|
6
16
|
parser.push('JSON.ARRTRIM');
|
|
7
17
|
parser.pushKey(key);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ARRTRIM.js","sourceRoot":"","sources":["../../../lib/commands/ARRTRIM.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,IAAmB,EAAE,KAAa,EAAE,IAAY;QACtG,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAC5B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;IACvD,CAAC;IACD,cAAc,EAAE,SAA+E;CACrE,CAAC"}
|
|
1
|
+
{"version":3,"file":"ARRTRIM.js","sourceRoot":"","sources":["../../../lib/commands/ARRTRIM.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;;OASG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,IAAmB,EAAE,KAAa,EAAE,IAAY;QACtG,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAC5B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;IACvD,CAAC;IACD,cAAc,EAAE,SAA+E;CACrE,CAAC"}
|
|
@@ -5,6 +5,15 @@ export interface JsonClearOptions {
|
|
|
5
5
|
}
|
|
6
6
|
declare const _default: {
|
|
7
7
|
readonly IS_READ_ONLY: false;
|
|
8
|
+
/**
|
|
9
|
+
* Clears container values (arrays/objects) in a JSON document.
|
|
10
|
+
* Returns the number of values cleared (0 or 1), or null if the path does not exist.
|
|
11
|
+
*
|
|
12
|
+
* @param parser - The Redis command parser
|
|
13
|
+
* @param key - The key containing the JSON document
|
|
14
|
+
* @param options - Optional parameters
|
|
15
|
+
* @param options.path - Path to the container to clear
|
|
16
|
+
*/
|
|
8
17
|
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, options?: JsonClearOptions) => void;
|
|
9
18
|
readonly transformReply: () => NumberReply;
|
|
10
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CLEAR.d.ts","sourceRoot":"","sources":["../../../lib/commands/CLEAR.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAW,MAAM,mCAAmC,CAAC;AAExF,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;;;
|
|
1
|
+
{"version":3,"file":"CLEAR.d.ts","sourceRoot":"","sources":["../../../lib/commands/CLEAR.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAW,MAAM,mCAAmC,CAAC;AAExF,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;;;IAIC;;;;;;;;OAQG;gDACkB,aAAa,OAAO,aAAa,YAAY,gBAAgB;mCAQpC,WAAW;;AAnB3D,wBAoB6B"}
|
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
4
|
IS_READ_ONLY: false,
|
|
5
|
+
/**
|
|
6
|
+
* Clears container values (arrays/objects) in a JSON document.
|
|
7
|
+
* Returns the number of values cleared (0 or 1), or null if the path does not exist.
|
|
8
|
+
*
|
|
9
|
+
* @param parser - The Redis command parser
|
|
10
|
+
* @param key - The key containing the JSON document
|
|
11
|
+
* @param options - Optional parameters
|
|
12
|
+
* @param options.path - Path to the container to clear
|
|
13
|
+
*/
|
|
5
14
|
parseCommand(parser, key, options) {
|
|
6
15
|
parser.push('JSON.CLEAR');
|
|
7
16
|
parser.pushKey(key);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CLEAR.js","sourceRoot":"","sources":["../../../lib/commands/CLEAR.ts"],"names":[],"mappings":";;AAOA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,OAA0B;QAChF,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,IAAI,OAAO,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAyC;CAC/B,CAAC"}
|
|
1
|
+
{"version":3,"file":"CLEAR.js","sourceRoot":"","sources":["../../../lib/commands/CLEAR.ts"],"names":[],"mappings":";;AAOA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;OAQG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,OAA0B;QAChF,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,IAAI,OAAO,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAyC;CAC/B,CAAC"}
|
|
@@ -5,6 +5,15 @@ export interface JsonDebugMemoryOptions {
|
|
|
5
5
|
}
|
|
6
6
|
declare const _default: {
|
|
7
7
|
readonly IS_READ_ONLY: false;
|
|
8
|
+
/**
|
|
9
|
+
* Reports memory usage details for a JSON document value.
|
|
10
|
+
* Returns size in bytes of the value, or null if the key or path does not exist.
|
|
11
|
+
*
|
|
12
|
+
* @param parser - The Redis command parser
|
|
13
|
+
* @param key - The key containing the JSON document
|
|
14
|
+
* @param options - Optional parameters
|
|
15
|
+
* @param options.path - Path to the value to examine
|
|
16
|
+
*/
|
|
8
17
|
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, options?: JsonDebugMemoryOptions) => void;
|
|
9
18
|
readonly transformReply: () => NumberReply;
|
|
10
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DEBUG_MEMORY.d.ts","sourceRoot":"","sources":["../../../lib/commands/DEBUG_MEMORY.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAW,MAAM,mCAAmC,CAAC;AAExF,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;;;
|
|
1
|
+
{"version":3,"file":"DEBUG_MEMORY.d.ts","sourceRoot":"","sources":["../../../lib/commands/DEBUG_MEMORY.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAW,MAAM,mCAAmC,CAAC;AAExF,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;;;IAIC;;;;;;;;OAQG;gDACkB,aAAa,OAAO,aAAa,YAAY,sBAAsB;mCAQ1C,WAAW;;AAnB3D,wBAoB6B"}
|
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
4
|
IS_READ_ONLY: false,
|
|
5
|
+
/**
|
|
6
|
+
* Reports memory usage details for a JSON document value.
|
|
7
|
+
* Returns size in bytes of the value, or null if the key or path does not exist.
|
|
8
|
+
*
|
|
9
|
+
* @param parser - The Redis command parser
|
|
10
|
+
* @param key - The key containing the JSON document
|
|
11
|
+
* @param options - Optional parameters
|
|
12
|
+
* @param options.path - Path to the value to examine
|
|
13
|
+
*/
|
|
5
14
|
parseCommand(parser, key, options) {
|
|
6
15
|
parser.push('JSON.DEBUG', 'MEMORY');
|
|
7
16
|
parser.pushKey(key);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DEBUG_MEMORY.js","sourceRoot":"","sources":["../../../lib/commands/DEBUG_MEMORY.ts"],"names":[],"mappings":";;AAOA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,OAAgC;QACtF,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;QACpC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,IAAI,OAAO,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAyC;CAC/B,CAAC"}
|
|
1
|
+
{"version":3,"file":"DEBUG_MEMORY.js","sourceRoot":"","sources":["../../../lib/commands/DEBUG_MEMORY.ts"],"names":[],"mappings":";;AAOA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;OAQG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,OAAgC;QACtF,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;QACpC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,IAAI,OAAO,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAyC;CAC/B,CAAC"}
|
|
@@ -5,6 +5,15 @@ export interface JsonDelOptions {
|
|
|
5
5
|
}
|
|
6
6
|
declare const _default: {
|
|
7
7
|
readonly IS_READ_ONLY: false;
|
|
8
|
+
/**
|
|
9
|
+
* Deletes a value from a JSON document.
|
|
10
|
+
* Returns the number of paths deleted (0 or 1), or null if the key does not exist.
|
|
11
|
+
*
|
|
12
|
+
* @param parser - The Redis command parser
|
|
13
|
+
* @param key - The key containing the JSON document
|
|
14
|
+
* @param options - Optional parameters
|
|
15
|
+
* @param options.path - Path to the value to delete
|
|
16
|
+
*/
|
|
8
17
|
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, options?: JsonDelOptions) => void;
|
|
9
18
|
readonly transformReply: () => NumberReply;
|
|
10
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DEL.d.ts","sourceRoot":"","sources":["../../../lib/commands/DEL.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAW,MAAM,mCAAmC,CAAC;AAExF,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,aAAa,CAAA;CACrB;;;
|
|
1
|
+
{"version":3,"file":"DEL.d.ts","sourceRoot":"","sources":["../../../lib/commands/DEL.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAW,MAAM,mCAAmC,CAAC;AAExF,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,aAAa,CAAA;CACrB;;;IAIC;;;;;;;;OAQG;gDACkB,aAAa,OAAO,aAAa,YAAY,cAAc;mCAQlC,WAAW;;AAnB3D,wBAoB6B"}
|
package/dist/lib/commands/DEL.js
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
4
|
IS_READ_ONLY: false,
|
|
5
|
+
/**
|
|
6
|
+
* Deletes a value from a JSON document.
|
|
7
|
+
* Returns the number of paths deleted (0 or 1), or null if the key does not exist.
|
|
8
|
+
*
|
|
9
|
+
* @param parser - The Redis command parser
|
|
10
|
+
* @param key - The key containing the JSON document
|
|
11
|
+
* @param options - Optional parameters
|
|
12
|
+
* @param options.path - Path to the value to delete
|
|
13
|
+
*/
|
|
5
14
|
parseCommand(parser, key, options) {
|
|
6
15
|
parser.push('JSON.DEL');
|
|
7
16
|
parser.pushKey(key);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DEL.js","sourceRoot":"","sources":["../../../lib/commands/DEL.ts"],"names":[],"mappings":";;AAOA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,OAAwB;QAC9E,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,IAAI,OAAO,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAyC;CAC/B,CAAC"}
|
|
1
|
+
{"version":3,"file":"DEL.js","sourceRoot":"","sources":["../../../lib/commands/DEL.ts"],"names":[],"mappings":";;AAOA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;OAQG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,OAAwB;QAC9E,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,IAAI,OAAO,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAyC;CAC/B,CAAC"}
|
|
@@ -5,6 +5,15 @@ export interface JsonForgetOptions {
|
|
|
5
5
|
}
|
|
6
6
|
declare const _default: {
|
|
7
7
|
readonly IS_READ_ONLY: false;
|
|
8
|
+
/**
|
|
9
|
+
* Alias for JSON.DEL - Deletes a value from a JSON document.
|
|
10
|
+
* Returns the number of paths deleted (0 or 1), or null if the key does not exist.
|
|
11
|
+
*
|
|
12
|
+
* @param parser - The Redis command parser
|
|
13
|
+
* @param key - The key containing the JSON document
|
|
14
|
+
* @param options - Optional parameters
|
|
15
|
+
* @param options.path - Path to the value to delete
|
|
16
|
+
*/
|
|
8
17
|
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, options?: JsonForgetOptions) => void;
|
|
9
18
|
readonly transformReply: () => NumberReply;
|
|
10
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FORGET.d.ts","sourceRoot":"","sources":["../../../lib/commands/FORGET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAW,MAAM,mCAAmC,CAAC;AAExF,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;;;
|
|
1
|
+
{"version":3,"file":"FORGET.d.ts","sourceRoot":"","sources":["../../../lib/commands/FORGET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAW,MAAM,mCAAmC,CAAC;AAExF,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;;;IAIC;;;;;;;;OAQG;gDACkB,aAAa,OAAO,aAAa,YAAY,iBAAiB;mCAQrC,WAAW;;AAnB3D,wBAoB6B"}
|
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
4
|
IS_READ_ONLY: false,
|
|
5
|
+
/**
|
|
6
|
+
* Alias for JSON.DEL - Deletes a value from a JSON document.
|
|
7
|
+
* Returns the number of paths deleted (0 or 1), or null if the key does not exist.
|
|
8
|
+
*
|
|
9
|
+
* @param parser - The Redis command parser
|
|
10
|
+
* @param key - The key containing the JSON document
|
|
11
|
+
* @param options - Optional parameters
|
|
12
|
+
* @param options.path - Path to the value to delete
|
|
13
|
+
*/
|
|
5
14
|
parseCommand(parser, key, options) {
|
|
6
15
|
parser.push('JSON.FORGET');
|
|
7
16
|
parser.pushKey(key);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FORGET.js","sourceRoot":"","sources":["../../../lib/commands/FORGET.ts"],"names":[],"mappings":";;AAOA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,OAA2B;QACjF,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,IAAI,OAAO,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAyC;CAC/B,CAAC"}
|
|
1
|
+
{"version":3,"file":"FORGET.js","sourceRoot":"","sources":["../../../lib/commands/FORGET.ts"],"names":[],"mappings":";;AAOA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;OAQG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,OAA2B;QACjF,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,IAAI,OAAO,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAyC;CAC/B,CAAC"}
|
|
@@ -7,6 +7,15 @@ export interface JsonGetOptions {
|
|
|
7
7
|
}
|
|
8
8
|
declare const _default: {
|
|
9
9
|
readonly IS_READ_ONLY: false;
|
|
10
|
+
/**
|
|
11
|
+
* Gets values from a JSON document.
|
|
12
|
+
* Returns the value at the specified path, or null if the key or path does not exist.
|
|
13
|
+
*
|
|
14
|
+
* @param parser - The Redis command parser
|
|
15
|
+
* @param key - The key containing the JSON document
|
|
16
|
+
* @param options - Optional parameters
|
|
17
|
+
* @param options.path - Path(s) to the value(s) to retrieve
|
|
18
|
+
*/
|
|
10
19
|
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, options?: JsonGetOptions) => void;
|
|
11
20
|
readonly transformReply: typeof transformRedisJsonNullReply;
|
|
12
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../lib/commands/GET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;AAC7F,OAAO,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,qBAAqB,CAAC;CAC9B;;;
|
|
1
|
+
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../lib/commands/GET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;AAC7F,OAAO,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,qBAAqB,CAAC;CAC9B;;;IAIC;;;;;;;;OAQG;gDAEO,aAAa,OAChB,aAAa,YACR,cAAc;;;AAd5B,wBAuB6B"}
|
package/dist/lib/commands/GET.js
CHANGED
|
@@ -3,6 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const helpers_1 = require("./helpers");
|
|
4
4
|
exports.default = {
|
|
5
5
|
IS_READ_ONLY: false,
|
|
6
|
+
/**
|
|
7
|
+
* Gets values from a JSON document.
|
|
8
|
+
* Returns the value at the specified path, or null if the key or path does not exist.
|
|
9
|
+
*
|
|
10
|
+
* @param parser - The Redis command parser
|
|
11
|
+
* @param key - The key containing the JSON document
|
|
12
|
+
* @param options - Optional parameters
|
|
13
|
+
* @param options.path - Path(s) to the value(s) to retrieve
|
|
14
|
+
*/
|
|
6
15
|
parseCommand(parser, key, options) {
|
|
7
16
|
parser.push('JSON.GET');
|
|
8
17
|
parser.pushKey(key);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../lib/commands/GET.ts"],"names":[],"mappings":";;AAGA,uCAAwD;AAMxD,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,OAAwB;QAExB,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,IAAI,OAAO,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACpC,CAAC;IACH,CAAC;IACD,cAAc,EAAE,qCAA2B;CACjB,CAAC"}
|
|
1
|
+
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../lib/commands/GET.ts"],"names":[],"mappings":";;AAGA,uCAAwD;AAMxD,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;OAQG;IACH,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,OAAwB;QAExB,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,IAAI,OAAO,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACpC,CAAC;IACH,CAAC;IACD,cAAc,EAAE,qCAA2B;CACjB,CAAC"}
|
|
@@ -3,6 +3,15 @@ import { SimpleStringReply, RedisArgument } from '@redis/client/dist/lib/RESP/ty
|
|
|
3
3
|
import { RedisJSON } from './helpers';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
readonly IS_READ_ONLY: false;
|
|
6
|
+
/**
|
|
7
|
+
* Merges a given JSON value into a JSON document.
|
|
8
|
+
* Returns OK on success, or null if the key does not exist.
|
|
9
|
+
*
|
|
10
|
+
* @param parser - The Redis command parser
|
|
11
|
+
* @param key - The key containing the JSON document
|
|
12
|
+
* @param path - Path to merge into
|
|
13
|
+
* @param value - JSON value to merge
|
|
14
|
+
*/
|
|
6
15
|
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, path: RedisArgument, value: RedisJSON) => void;
|
|
7
16
|
readonly transformReply: () => SimpleStringReply<'OK'>;
|
|
8
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MERGE.d.ts","sourceRoot":"","sources":["../../../lib/commands/MERGE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAW,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAC9F,OAAO,EAAE,SAAS,EAA8B,MAAM,WAAW,CAAC;;;
|
|
1
|
+
{"version":3,"file":"MERGE.d.ts","sourceRoot":"","sources":["../../../lib/commands/MERGE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAW,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAC9F,OAAO,EAAE,SAAS,EAA8B,MAAM,WAAW,CAAC;;;IAIhE;;;;;;;;OAQG;gDACkB,aAAa,OAAO,aAAa,QAAQ,aAAa,SAAS,SAAS;mCAK/C,kBAAkB,IAAI,CAAC;;AAhBvE,wBAiB6B"}
|
|
@@ -3,6 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const helpers_1 = require("./helpers");
|
|
4
4
|
exports.default = {
|
|
5
5
|
IS_READ_ONLY: false,
|
|
6
|
+
/**
|
|
7
|
+
* Merges a given JSON value into a JSON document.
|
|
8
|
+
* Returns OK on success, or null if the key does not exist.
|
|
9
|
+
*
|
|
10
|
+
* @param parser - The Redis command parser
|
|
11
|
+
* @param key - The key containing the JSON document
|
|
12
|
+
* @param path - Path to merge into
|
|
13
|
+
* @param value - JSON value to merge
|
|
14
|
+
*/
|
|
6
15
|
parseCommand(parser, key, path, value) {
|
|
7
16
|
parser.push('JSON.MERGE');
|
|
8
17
|
parser.pushKey(key);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MERGE.js","sourceRoot":"","sources":["../../../lib/commands/MERGE.ts"],"names":[],"mappings":";;AAEA,uCAAkE;AAElE,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,IAAmB,EAAE,KAAgB;QAC3F,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAA,oCAA0B,EAAC,KAAK,CAAC,CAAC,CAAC;IACvD,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC"}
|
|
1
|
+
{"version":3,"file":"MERGE.js","sourceRoot":"","sources":["../../../lib/commands/MERGE.ts"],"names":[],"mappings":";;AAEA,uCAAkE;AAElE,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;OAQG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,IAAmB,EAAE,KAAgB;QAC3F,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAA,oCAA0B,EAAC,KAAK,CAAC,CAAC,CAAC;IACvD,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC"}
|
|
@@ -2,6 +2,14 @@ import { CommandParser } from '@redis/client/dist/lib/client/parser';
|
|
|
2
2
|
import { RedisArgument, UnwrapReply, ArrayReply, NullReply, BlobStringReply } from '@redis/client/dist/lib/RESP/types';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
readonly IS_READ_ONLY: true;
|
|
5
|
+
/**
|
|
6
|
+
* Gets values at a specific path from multiple JSON documents.
|
|
7
|
+
* Returns an array of values at the path from each key, null for missing keys/paths.
|
|
8
|
+
*
|
|
9
|
+
* @param parser - The Redis command parser
|
|
10
|
+
* @param keys - Array of keys containing JSON documents
|
|
11
|
+
* @param path - Path to retrieve from each document
|
|
12
|
+
*/
|
|
5
13
|
readonly parseCommand: (this: void, parser: CommandParser, keys: Array<RedisArgument>, path: RedisArgument) => void;
|
|
6
14
|
readonly transformReply: (this: void, reply: UnwrapReply<ArrayReply<NullReply | BlobStringReply>>) => (NullReply | import("./helpers").RedisJSON)[];
|
|
7
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MGET.d.ts","sourceRoot":"","sources":["../../../lib/commands/MGET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAW,MAAM,mCAAmC,CAAC;;;
|
|
1
|
+
{"version":3,"file":"MGET.d.ts","sourceRoot":"","sources":["../../../lib/commands/MGET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAW,MAAM,mCAAmC,CAAC;;;IAK9H;;;;;;;OAOG;gDACkB,aAAa,QAAQ,MAAM,aAAa,CAAC,QAAQ,aAAa;iDAK7D,YAAY,WAAW,SAAS,GAAG,eAAe,CAAC,CAAC;;AAf5E,wBAkB6B"}
|
|
@@ -3,6 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const helpers_1 = require("./helpers");
|
|
4
4
|
exports.default = {
|
|
5
5
|
IS_READ_ONLY: true,
|
|
6
|
+
/**
|
|
7
|
+
* Gets values at a specific path from multiple JSON documents.
|
|
8
|
+
* Returns an array of values at the path from each key, null for missing keys/paths.
|
|
9
|
+
*
|
|
10
|
+
* @param parser - The Redis command parser
|
|
11
|
+
* @param keys - Array of keys containing JSON documents
|
|
12
|
+
* @param path - Path to retrieve from each document
|
|
13
|
+
*/
|
|
6
14
|
parseCommand(parser, keys, path) {
|
|
7
15
|
parser.push('JSON.MGET');
|
|
8
16
|
parser.pushKeys(keys);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MGET.js","sourceRoot":"","sources":["../../../lib/commands/MGET.ts"],"names":[],"mappings":";;AAEA,uCAAwD;AAExD,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CAAC,MAAqB,EAAE,IAA0B,EAAE,IAAmB;QACjF,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzB,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACtB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IACD,cAAc,CAAC,KAA2D;QACxE,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAA,qCAA2B,EAAC,IAAI,CAAC,CAAC,CAAA;IAC7D,CAAC;CACyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"MGET.js","sourceRoot":"","sources":["../../../lib/commands/MGET.ts"],"names":[],"mappings":";;AAEA,uCAAwD;AAExD,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB;;;;;;;OAOG;IACH,YAAY,CAAC,MAAqB,EAAE,IAA0B,EAAE,IAAmB;QACjF,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzB,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACtB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IACD,cAAc,CAAC,KAA2D;QACxE,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAA,qCAA2B,EAAC,IAAI,CAAC,CAAC,CAAA;IAC7D,CAAC;CACyB,CAAC"}
|