-first commit

This commit is contained in:
2025-11-11 12:36:06 +07:00
commit b99c214434
5683 changed files with 713336 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import { CommandParser } from '../client/parser';
import { RedisArgument, ArrayReply, BlobStringReply } from '../RESP/types';
declare const _default: {
readonly NOT_KEYED_COMMAND: true;
readonly IS_READ_ONLY: true;
/**
* Lists ACL categories or commands in a category
* @param parser - The Redis command parser
* @param categoryName - Optional category name to filter commands
*/
readonly parseCommand: (this: void, parser: CommandParser, categoryName?: RedisArgument) => void;
readonly transformReply: () => ArrayReply<BlobStringReply>;
};
export default _default;
//# sourceMappingURL=ACL_CAT.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_CAT.d.ts","sourceRoot":"","sources":["../../../lib/commands/ACL_CAT.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,eAAe,EAAW,MAAM,eAAe,CAAC;;;;IAKlF;;;;OAIG;gDACkB,aAAa,iBAAiB,aAAa;mCAMlB,WAAW,eAAe,CAAC;;AAd3E,wBAe6B"}

View File

@@ -0,0 +1,19 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
NOT_KEYED_COMMAND: true,
IS_READ_ONLY: true,
/**
* Lists ACL categories or commands in a category
* @param parser - The Redis command parser
* @param categoryName - Optional category name to filter commands
*/
parseCommand(parser, categoryName) {
parser.push('ACL', 'CAT');
if (categoryName) {
parser.push(categoryName);
}
},
transformReply: undefined
};
//# sourceMappingURL=ACL_CAT.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_CAT.js","sourceRoot":"","sources":["../../../lib/commands/ACL_CAT.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,iBAAiB,EAAE,IAAI;IACvB,YAAY,EAAE,IAAI;IAClB;;;;OAIG;IACH,YAAY,CAAC,MAAqB,EAAE,YAA4B;QAC9D,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAC1B,IAAI,YAAY,EAAE,CAAC;YACjB,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAyD;CAC/C,CAAC"}

View File

@@ -0,0 +1,16 @@
import { CommandParser } from '../client/parser';
import { NumberReply } from '../RESP/types';
import { RedisVariadicArgument } from './generic-transformers';
declare const _default: {
readonly NOT_KEYED_COMMAND: true;
readonly IS_READ_ONLY: true;
/**
* Deletes one or more users from the ACL
* @param parser - The Redis command parser
* @param username - Username(s) to delete
*/
readonly parseCommand: (this: void, parser: CommandParser, username: RedisVariadicArgument) => void;
readonly transformReply: () => NumberReply;
};
export default _default;
//# sourceMappingURL=ACL_DELUSER.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_DELUSER.d.ts","sourceRoot":"","sources":["../../../lib/commands/ACL_DELUSER.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAW,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;;;;IAK7D;;;;OAIG;gDACkB,aAAa,YAAY,qBAAqB;mCAIrB,WAAW;;AAZ3D,wBAa6B"}

View File

@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
NOT_KEYED_COMMAND: true,
IS_READ_ONLY: true,
/**
* Deletes one or more users from the ACL
* @param parser - The Redis command parser
* @param username - Username(s) to delete
*/
parseCommand(parser, username) {
parser.push('ACL', 'DELUSER');
parser.pushVariadic(username);
},
transformReply: undefined
};
//# sourceMappingURL=ACL_DELUSER.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_DELUSER.js","sourceRoot":"","sources":["../../../lib/commands/ACL_DELUSER.ts"],"names":[],"mappings":";;AAIA,kBAAe;IACb,iBAAiB,EAAE,IAAI;IACvB,YAAY,EAAE,IAAI;IAClB;;;;OAIG;IACH,YAAY,CAAC,MAAqB,EAAE,QAA+B;QACjE,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QAC9B,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;IACD,cAAc,EAAE,SAAyC;CAC/B,CAAC"}

View File

@@ -0,0 +1,16 @@
import { CommandParser } from '../client/parser';
import { RedisArgument, SimpleStringReply, BlobStringReply } from '../RESP/types';
declare const _default: {
readonly NOT_KEYED_COMMAND: true;
readonly IS_READ_ONLY: true;
/**
* Simulates ACL operations without executing them
* @param parser - The Redis command parser
* @param username - Username to simulate ACL operations for
* @param command - Command arguments to simulate
*/
readonly parseCommand: (this: void, parser: CommandParser, username: RedisArgument, command: Array<RedisArgument>) => void;
readonly transformReply: () => SimpleStringReply<'OK'> | BlobStringReply;
};
export default _default;
//# sourceMappingURL=ACL_DRYRUN.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_DRYRUN.d.ts","sourceRoot":"","sources":["../../../lib/commands/ACL_DRYRUN.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,eAAe,EAAW,MAAM,eAAe,CAAC;;;;IAKzF;;;;;OAKG;gDACkB,aAAa,YAAY,aAAa,WAAW,MAAM,aAAa,CAAC;mCAG5C,kBAAkB,IAAI,CAAC,GAAG,eAAe;;AAZzF,wBAa6B"}

View File

@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
NOT_KEYED_COMMAND: true,
IS_READ_ONLY: true,
/**
* Simulates ACL operations without executing them
* @param parser - The Redis command parser
* @param username - Username to simulate ACL operations for
* @param command - Command arguments to simulate
*/
parseCommand(parser, username, command) {
parser.push('ACL', 'DRYRUN', username, ...command);
},
transformReply: undefined
};
//# sourceMappingURL=ACL_DRYRUN.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_DRYRUN.js","sourceRoot":"","sources":["../../../lib/commands/ACL_DRYRUN.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,iBAAiB,EAAE,IAAI;IACvB,YAAY,EAAE,IAAI;IAClB;;;;;OAKG;IACH,YAAY,CAAC,MAAqB,EAAE,QAAuB,EAAE,OAA6B;QACxF,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,CAAC;IACrD,CAAC;IACD,cAAc,EAAE,SAAuE;CAC7D,CAAC"}

View File

@@ -0,0 +1,15 @@
import { CommandParser } from '../client/parser';
import { BlobStringReply } from '../RESP/types';
declare const _default: {
readonly NOT_KEYED_COMMAND: true;
readonly IS_READ_ONLY: true;
/**
* Generates a secure password for ACL users
* @param parser - The Redis command parser
* @param bits - Optional number of bits for password entropy
*/
readonly parseCommand: (this: void, parser: CommandParser, bits?: number) => void;
readonly transformReply: () => BlobStringReply;
};
export default _default;
//# sourceMappingURL=ACL_GENPASS.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_GENPASS.d.ts","sourceRoot":"","sources":["../../../lib/commands/ACL_GENPASS.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAW,MAAM,eAAe,CAAC;;;;IAKvD;;;;OAIG;gDACkB,aAAa,SAAS,MAAM;mCAMH,eAAe;;AAd/D,wBAe6B"}

View File

@@ -0,0 +1,19 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
NOT_KEYED_COMMAND: true,
IS_READ_ONLY: true,
/**
* Generates a secure password for ACL users
* @param parser - The Redis command parser
* @param bits - Optional number of bits for password entropy
*/
parseCommand(parser, bits) {
parser.push('ACL', 'GENPASS');
if (bits) {
parser.push(bits.toString());
}
},
transformReply: undefined
};
//# sourceMappingURL=ACL_GENPASS.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_GENPASS.js","sourceRoot":"","sources":["../../../lib/commands/ACL_GENPASS.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,iBAAiB,EAAE,IAAI;IACvB,YAAY,EAAE,IAAI;IAClB;;;;OAIG;IACH,YAAY,CAAC,MAAqB,EAAE,IAAa;QAC/C,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QAC9B,IAAI,IAAI,EAAE,CAAC;YACT,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC/B,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAA6C;CACnC,CAAC"}

View File

@@ -0,0 +1,71 @@
import { CommandParser } from '../client/parser';
import { RedisArgument, TuplesToMapReply, BlobStringReply, ArrayReply } from '../RESP/types';
type AclUser = TuplesToMapReply<[
[
BlobStringReply<'flags'>,
ArrayReply<BlobStringReply>
],
[
BlobStringReply<'passwords'>,
ArrayReply<BlobStringReply>
],
[
BlobStringReply<'commands'>,
BlobStringReply
],
/** changed to BlobStringReply in 7.0 */
[
BlobStringReply<'keys'>,
ArrayReply<BlobStringReply> | BlobStringReply
],
/** added in 6.2, changed to BlobStringReply in 7.0 */
[
BlobStringReply<'channels'>,
ArrayReply<BlobStringReply> | BlobStringReply
],
/** added in 7.0 */
[
BlobStringReply<'selectors'>,
ArrayReply<TuplesToMapReply<[
[
BlobStringReply<'commands'>,
BlobStringReply
],
[
BlobStringReply<'keys'>,
BlobStringReply
],
[
BlobStringReply<'channels'>,
BlobStringReply
]
]>>
]
]>;
declare const _default: {
readonly NOT_KEYED_COMMAND: true;
readonly IS_READ_ONLY: true;
/**
* Returns ACL information about a specific user
* @param parser - The Redis command parser
* @param username - Username to get information for
*/
readonly parseCommand: (this: void, parser: CommandParser, username: RedisArgument) => void;
readonly transformReply: {
readonly 2: (reply: [BlobStringReply<"flags">, import("../RESP/types").RespType<42, BlobStringReply<string>[], never, BlobStringReply<string>[]>, BlobStringReply<"passwords">, import("../RESP/types").RespType<42, BlobStringReply<string>[], never, BlobStringReply<string>[]>, BlobStringReply<"commands">, BlobStringReply<string>, BlobStringReply<"keys">, BlobStringReply<string> | import("../RESP/types").RespType<42, BlobStringReply<string>[], never, BlobStringReply<string>[]>, BlobStringReply<"channels">, BlobStringReply<string> | import("../RESP/types").RespType<42, BlobStringReply<string>[], never, BlobStringReply<string>[]>, BlobStringReply<"selectors">, import("../RESP/types").RespType<42, import("../RESP/types").RespType<42, [BlobStringReply<"commands">, BlobStringReply<string>, BlobStringReply<"keys">, BlobStringReply<string>, BlobStringReply<"channels">, BlobStringReply<string>], never, [BlobStringReply<"commands">, BlobStringReply<string>, BlobStringReply<"keys">, BlobStringReply<string>, BlobStringReply<"channels">, BlobStringReply<string>]>[], never, import("../RESP/types").RespType<42, [BlobStringReply<"commands">, BlobStringReply<string>, BlobStringReply<"keys">, BlobStringReply<string>, BlobStringReply<"channels">, BlobStringReply<string>], never, [BlobStringReply<"commands">, BlobStringReply<string>, BlobStringReply<"keys">, BlobStringReply<string>, BlobStringReply<"channels">, BlobStringReply<string>]>[]>]) => {
flags: import("../RESP/types").RespType<42, BlobStringReply<string>[], never, BlobStringReply<string>[]>;
passwords: import("../RESP/types").RespType<42, BlobStringReply<string>[], never, BlobStringReply<string>[]>;
commands: BlobStringReply<string>;
keys: BlobStringReply<string> | import("../RESP/types").RespType<42, BlobStringReply<string>[], never, BlobStringReply<string>[]>;
channels: BlobStringReply<string> | import("../RESP/types").RespType<42, BlobStringReply<string>[], never, BlobStringReply<string>[]>;
selectors: {
commands: BlobStringReply<string>;
keys: BlobStringReply<string>;
channels: BlobStringReply<string>;
}[];
};
readonly 3: () => AclUser;
};
};
export default _default;
//# sourceMappingURL=ACL_GETUSER.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_GETUSER.d.ts","sourceRoot":"","sources":["../../../lib/commands/ACL_GETUSER.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,eAAe,EAAE,UAAU,EAAoC,MAAM,eAAe,CAAC;AAE/H,KAAK,OAAO,GAAG,gBAAgB,CAAC;IAC9B;QAAC,eAAe,CAAC,OAAO,CAAC;QAAE,UAAU,CAAC,eAAe,CAAC;KAAC;IACvD;QAAC,eAAe,CAAC,WAAW,CAAC;QAAE,UAAU,CAAC,eAAe,CAAC;KAAC;IAC3D;QAAC,eAAe,CAAC,UAAU,CAAC;QAAE,eAAe;KAAC;IAC9C,wCAAwC;IACxC;QAAC,eAAe,CAAC,MAAM,CAAC;QAAE,UAAU,CAAC,eAAe,CAAC,GAAG,eAAe;KAAC;IACxE,sDAAsD;IACtD;QAAC,eAAe,CAAC,UAAU,CAAC;QAAE,UAAU,CAAC,eAAe,CAAC,GAAG,eAAe;KAAC;IAC5E,mBAAmB;IACnB;QAAC,eAAe,CAAC,WAAW,CAAC;QAAE,UAAU,CAAC,gBAAgB,CAAC;YACzD;gBAAC,eAAe,CAAC,UAAU,CAAC;gBAAE,eAAe;aAAC;YAC9C;gBAAC,eAAe,CAAC,MAAM,CAAC;gBAAE,eAAe;aAAC;YAC1C;gBAAC,eAAe,CAAC,UAAU,CAAC;gBAAE,eAAe;aAAC;SAC/C,CAAC,CAAC;KAAC;CACL,CAAC,CAAC;;;;IAKD;;;;OAIG;gDACkB,aAAa,YAAY,aAAa;;;;;;;;;;;;;;;;;AAR7D,wBA6B6B"}

View File

@@ -0,0 +1,33 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
NOT_KEYED_COMMAND: true,
IS_READ_ONLY: true,
/**
* Returns ACL information about a specific user
* @param parser - The Redis command parser
* @param username - Username to get information for
*/
parseCommand(parser, username) {
parser.push('ACL', 'GETUSER', username);
},
transformReply: {
2: (reply) => ({
flags: reply[1],
passwords: reply[3],
commands: reply[5],
keys: reply[7],
channels: reply[9],
selectors: reply[11]?.map(selector => {
const inferred = selector;
return {
commands: inferred[1],
keys: inferred[3],
channels: inferred[5]
};
})
}),
3: undefined
}
};
//# sourceMappingURL=ACL_GETUSER.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_GETUSER.js","sourceRoot":"","sources":["../../../lib/commands/ACL_GETUSER.ts"],"names":[],"mappings":";;AAmBA,kBAAe;IACb,iBAAiB,EAAE,IAAI;IACvB,YAAY,EAAE,IAAI;IAClB;;;;OAIG;IACH,YAAY,CAAC,MAAqB,EAAE,QAAuB;QACzD,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC1C,CAAC;IACD,cAAc,EAAE;QACd,CAAC,EAAE,CAAC,KAAuC,EAAE,EAAE,CAAC,CAAC;YAC/C,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;YACf,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC;YACnB,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;YAClB,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;YACd,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;YAClB,SAAS,EAAG,KAAK,CAAC,EAAE,CAA8C,EAAE,GAAG,CAAC,QAAQ,CAAC,EAAE;gBACjF,MAAM,QAAQ,GAAG,QAAmD,CAAC;gBACrE,OAAO;oBACL,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;oBACrB,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC;oBACjB,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;iBACtB,CAAC;YACJ,CAAC,CAAC;SACH,CAAC;QACF,CAAC,EAAE,SAAqC;KACzC;CACyB,CAAC"}

View File

@@ -0,0 +1,14 @@
import { CommandParser } from '../client/parser';
import { ArrayReply, BlobStringReply } from '../RESP/types';
declare const _default: {
readonly NOT_KEYED_COMMAND: true;
readonly IS_READ_ONLY: true;
/**
* Returns all configured ACL users and their permissions
* @param parser - The Redis command parser
*/
readonly parseCommand: (this: void, parser: CommandParser) => void;
readonly transformReply: () => ArrayReply<BlobStringReply>;
};
export default _default;
//# sourceMappingURL=ACL_LIST.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_LIST.d.ts","sourceRoot":"","sources":["../../../lib/commands/ACL_LIST.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAW,MAAM,eAAe,CAAC;;;;IAKnE;;;OAGG;gDACkB,aAAa;mCAGY,WAAW,eAAe,CAAC;;AAV3E,wBAW6B"}

View File

@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
NOT_KEYED_COMMAND: true,
IS_READ_ONLY: true,
/**
* Returns all configured ACL users and their permissions
* @param parser - The Redis command parser
*/
parseCommand(parser) {
parser.push('ACL', 'LIST');
},
transformReply: undefined
};
//# sourceMappingURL=ACL_LIST.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_LIST.js","sourceRoot":"","sources":["../../../lib/commands/ACL_LIST.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,iBAAiB,EAAE,IAAI;IACvB,YAAY,EAAE,IAAI;IAClB;;;OAGG;IACH,YAAY,CAAC,MAAqB;QAChC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC7B,CAAC;IACD,cAAc,EAAE,SAAyD;CAC/C,CAAC"}

View File

@@ -0,0 +1,14 @@
import { CommandParser } from '../client/parser';
import { SimpleStringReply } from '../RESP/types';
declare const _default: {
readonly NOT_KEYED_COMMAND: true;
readonly IS_READ_ONLY: true;
/**
* Reloads ACL configuration from the ACL file
* @param parser - The Redis command parser
*/
readonly parseCommand: (this: void, parser: CommandParser) => void;
readonly transformReply: () => SimpleStringReply<'OK'>;
};
export default _default;
//# sourceMappingURL=ACL_LOAD.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_LOAD.d.ts","sourceRoot":"","sources":["../../../lib/commands/ACL_LOAD.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAW,MAAM,eAAe,CAAC;;;;IAKzD;;;OAGG;gDACkB,aAAa;mCAGY,kBAAkB,IAAI,CAAC;;AAVvE,wBAW6B"}

View File

@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
NOT_KEYED_COMMAND: true,
IS_READ_ONLY: true,
/**
* Reloads ACL configuration from the ACL file
* @param parser - The Redis command parser
*/
parseCommand(parser) {
parser.push('ACL', 'LOAD');
},
transformReply: undefined
};
//# sourceMappingURL=ACL_LOAD.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_LOAD.js","sourceRoot":"","sources":["../../../lib/commands/ACL_LOAD.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,iBAAiB,EAAE,IAAI;IACvB,YAAY,EAAE,IAAI;IAClB;;;OAGG;IACH,YAAY,CAAC,MAAqB;QAChC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC7B,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC"}

View File

@@ -0,0 +1,74 @@
import { CommandParser } from '../client/parser';
import { ArrayReply, TuplesToMapReply, BlobStringReply, NumberReply, DoubleReply, UnwrapReply, Resp2Reply, TypeMapping } from '../RESP/types';
export type AclLogReply = ArrayReply<TuplesToMapReply<[
[
BlobStringReply<'count'>,
NumberReply
],
[
BlobStringReply<'reason'>,
BlobStringReply
],
[
BlobStringReply<'context'>,
BlobStringReply
],
[
BlobStringReply<'object'>,
BlobStringReply
],
[
BlobStringReply<'username'>,
BlobStringReply
],
[
BlobStringReply<'age-seconds'>,
DoubleReply
],
[
BlobStringReply<'client-info'>,
BlobStringReply
],
/** added in 7.0 */
[
BlobStringReply<'entry-id'>,
NumberReply
],
/** added in 7.0 */
[
BlobStringReply<'timestamp-created'>,
NumberReply
],
/** added in 7.0 */
[
BlobStringReply<'timestamp-last-updated'>,
NumberReply
]
]>>;
declare const _default: {
readonly NOT_KEYED_COMMAND: true;
readonly IS_READ_ONLY: true;
/**
* Returns ACL security events log entries
* @param parser - The Redis command parser
* @param count - Optional maximum number of entries to return
*/
readonly parseCommand: (this: void, parser: CommandParser, count?: number) => void;
readonly transformReply: {
readonly 2: (reply: UnwrapReply<Resp2Reply<AclLogReply>>, preserve?: any, typeMapping?: TypeMapping) => {
count: NumberReply<number>;
reason: BlobStringReply<string>;
context: BlobStringReply<string>;
object: BlobStringReply<string>;
username: BlobStringReply<string>;
'age-seconds': DoubleReply<number>;
'client-info': BlobStringReply<string>;
'entry-id': NumberReply<number>;
'timestamp-created': NumberReply<number>;
'timestamp-last-updated': NumberReply<number>;
}[];
readonly 3: () => AclLogReply;
};
};
export default _default;
//# sourceMappingURL=ACL_LOG.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_LOG.d.ts","sourceRoot":"","sources":["../../../lib/commands/ACL_LOG.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,eAAe,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAW,WAAW,EAAE,MAAM,eAAe,CAAC;AAGvJ,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,gBAAgB,CAAC;IACpD;QAAC,eAAe,CAAC,OAAO,CAAC;QAAE,WAAW;KAAC;IACvC;QAAC,eAAe,CAAC,QAAQ,CAAC;QAAE,eAAe;KAAC;IAC5C;QAAC,eAAe,CAAC,SAAS,CAAC;QAAE,eAAe;KAAC;IAC7C;QAAC,eAAe,CAAC,QAAQ,CAAC;QAAE,eAAe;KAAC;IAC5C;QAAC,eAAe,CAAC,UAAU,CAAC;QAAE,eAAe;KAAC;IAC9C;QAAC,eAAe,CAAC,aAAa,CAAC;QAAE,WAAW;KAAC;IAC7C;QAAC,eAAe,CAAC,aAAa,CAAC;QAAE,eAAe;KAAC;IACjD,mBAAmB;IACnB;QAAC,eAAe,CAAC,UAAU,CAAC;QAAE,WAAW;KAAC;IAC1C,mBAAmB;IACnB;QAAC,eAAe,CAAC,mBAAmB,CAAC;QAAE,WAAW;KAAC;IACnD,mBAAmB;IACnB;QAAC,eAAe,CAAC,wBAAwB,CAAC;QAAE,WAAW;KAAC;CACzD,CAAC,CAAC,CAAC;;;;IAKF;;;;OAIG;gDACkB,aAAa,UAAU,MAAM;;4BAOrC,YAAY,WAAW,WAAW,CAAC,CAAC,aAAa,GAAG,gBAAgB,WAAW;;;;;;;;;;;;;;;AAf9F,wBAkC6B"}

View File

@@ -0,0 +1,39 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const generic_transformers_1 = require("./generic-transformers");
exports.default = {
NOT_KEYED_COMMAND: true,
IS_READ_ONLY: true,
/**
* Returns ACL security events log entries
* @param parser - The Redis command parser
* @param count - Optional maximum number of entries to return
*/
parseCommand(parser, count) {
parser.push('ACL', 'LOG');
if (count != undefined) {
parser.push(count.toString());
}
},
transformReply: {
2: (reply, preserve, typeMapping) => {
return reply.map(item => {
const inferred = item;
return {
count: inferred[1],
reason: inferred[3],
context: inferred[5],
object: inferred[7],
username: inferred[9],
'age-seconds': generic_transformers_1.transformDoubleReply[2](inferred[11], preserve, typeMapping),
'client-info': inferred[13],
'entry-id': inferred[15],
'timestamp-created': inferred[17],
'timestamp-last-updated': inferred[19]
};
});
},
3: undefined
}
};
//# sourceMappingURL=ACL_LOG.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_LOG.js","sourceRoot":"","sources":["../../../lib/commands/ACL_LOG.ts"],"names":[],"mappings":";;AAEA,iEAA8D;AAkB9D,kBAAe;IACb,iBAAiB,EAAE,IAAI;IACvB,YAAY,EAAE,IAAI;IAClB;;;;OAIG;IACH,YAAY,CAAC,MAAqB,EAAE,KAAc;QAChD,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAC1B,IAAI,KAAK,IAAI,SAAS,EAAE,CAAC;YACvB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;IACD,cAAc,EAAE;QACd,CAAC,EAAE,CAAC,KAA2C,EAAE,QAAc,EAAE,WAAyB,EAAE,EAAE;YAC5F,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;gBACtB,MAAM,QAAQ,GAAG,IAA2C,CAAC;gBAC7D,OAAO;oBACL,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;oBAClB,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;oBACnB,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;oBACpB,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;oBACnB,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;oBACrB,aAAa,EAAE,2CAAoB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,WAAW,CAAC;oBAC3E,aAAa,EAAE,QAAQ,CAAC,EAAE,CAAC;oBAC3B,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC;oBACxB,mBAAmB,EAAE,QAAQ,CAAC,EAAE,CAAC;oBACjC,wBAAwB,EAAE,QAAQ,CAAC,EAAE,CAAC;iBACvC,CAAC;YACJ,CAAC,CAAC,CAAA;QACJ,CAAC;QACD,CAAC,EAAE,SAAyC;KAC7C;CACyB,CAAC"}

View File

@@ -0,0 +1,14 @@
import { CommandParser } from '../client/parser';
import { SimpleStringReply } from '../RESP/types';
declare const _default: {
readonly NOT_KEYED_COMMAND: true;
readonly IS_READ_ONLY: true;
/**
* Clears the ACL security events log
* @param parser - The Redis command parser
*/
readonly parseCommand: (this: void, parser: CommandParser) => void;
readonly transformReply: () => SimpleStringReply<'OK'>;
};
export default _default;
//# sourceMappingURL=ACL_LOG_RESET.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_LOG_RESET.d.ts","sourceRoot":"","sources":["../../../lib/commands/ACL_LOG_RESET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAW,MAAM,eAAe,CAAC;;;;IAMzD;;;OAGG;gDACkB,aAAa;mCAGY,kBAAkB,IAAI,CAAC;;AAVvE,wBAW6B"}

View File

@@ -0,0 +1,19 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const ACL_LOG_1 = __importDefault(require("./ACL_LOG"));
exports.default = {
NOT_KEYED_COMMAND: true,
IS_READ_ONLY: ACL_LOG_1.default.IS_READ_ONLY,
/**
* Clears the ACL security events log
* @param parser - The Redis command parser
*/
parseCommand(parser) {
parser.push('ACL', 'LOG', 'RESET');
},
transformReply: undefined
};
//# sourceMappingURL=ACL_LOG_RESET.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_LOG_RESET.js","sourceRoot":"","sources":["../../../lib/commands/ACL_LOG_RESET.ts"],"names":[],"mappings":";;;;;AAEA,wDAAgC;AAEhC,kBAAe;IACb,iBAAiB,EAAE,IAAI;IACvB,YAAY,EAAE,iBAAO,CAAC,YAAY;IAClC;;;OAGG;IACH,YAAY,CAAC,MAAqB;QAChC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACrC,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC"}

View File

@@ -0,0 +1,14 @@
import { CommandParser } from '../client/parser';
import { SimpleStringReply } from '../RESP/types';
declare const _default: {
readonly NOT_KEYED_COMMAND: true;
readonly IS_READ_ONLY: true;
/**
* Saves the current ACL configuration to the ACL file
* @param parser - The Redis command parser
*/
readonly parseCommand: (this: void, parser: CommandParser) => void;
readonly transformReply: () => SimpleStringReply<'OK'>;
};
export default _default;
//# sourceMappingURL=ACL_SAVE.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_SAVE.d.ts","sourceRoot":"","sources":["../../../lib/commands/ACL_SAVE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAW,MAAM,eAAe,CAAC;;;;IAKzD;;;OAGG;gDACkB,aAAa;mCAGY,kBAAkB,IAAI,CAAC;;AAVvE,wBAW6B"}

View File

@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
NOT_KEYED_COMMAND: true,
IS_READ_ONLY: true,
/**
* Saves the current ACL configuration to the ACL file
* @param parser - The Redis command parser
*/
parseCommand(parser) {
parser.push('ACL', 'SAVE');
},
transformReply: undefined
};
//# sourceMappingURL=ACL_SAVE.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_SAVE.js","sourceRoot":"","sources":["../../../lib/commands/ACL_SAVE.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,iBAAiB,EAAE,IAAI;IACvB,YAAY,EAAE,IAAI;IAClB;;;OAGG;IACH,YAAY,CAAC,MAAqB;QAChC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC7B,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC"}

View File

@@ -0,0 +1,17 @@
import { CommandParser } from '../client/parser';
import { RedisArgument, SimpleStringReply } from '../RESP/types';
import { RedisVariadicArgument } from './generic-transformers';
declare const _default: {
readonly NOT_KEYED_COMMAND: true;
readonly IS_READ_ONLY: true;
/**
* Creates or modifies ACL user with specified rules
* @param parser - The Redis command parser
* @param username - Username to create or modify
* @param rule - ACL rule(s) to apply to the user
*/
readonly parseCommand: (this: void, parser: CommandParser, username: RedisArgument, rule: RedisVariadicArgument) => void;
readonly transformReply: () => SimpleStringReply<'OK'>;
};
export default _default;
//# sourceMappingURL=ACL_SETUSER.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_SETUSER.d.ts","sourceRoot":"","sources":["../../../lib/commands/ACL_SETUSER.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAW,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;;;;IAK7D;;;;;OAKG;gDACkB,aAAa,YAAY,aAAa,QAAQ,qBAAqB;mCAI1C,kBAAkB,IAAI,CAAC;;AAbvE,wBAc6B"}

View File

@@ -0,0 +1,18 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
NOT_KEYED_COMMAND: true,
IS_READ_ONLY: true,
/**
* Creates or modifies ACL user with specified rules
* @param parser - The Redis command parser
* @param username - Username to create or modify
* @param rule - ACL rule(s) to apply to the user
*/
parseCommand(parser, username, rule) {
parser.push('ACL', 'SETUSER', username);
parser.pushVariadic(rule);
},
transformReply: undefined
};
//# sourceMappingURL=ACL_SETUSER.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_SETUSER.js","sourceRoot":"","sources":["../../../lib/commands/ACL_SETUSER.ts"],"names":[],"mappings":";;AAIA,kBAAe;IACb,iBAAiB,EAAE,IAAI;IACvB,YAAY,EAAE,IAAI;IAClB;;;;;OAKG;IACH,YAAY,CAAC,MAAqB,EAAE,QAAuB,EAAE,IAA2B;QACtF,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;QACxC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC"}

View File

@@ -0,0 +1,14 @@
import { CommandParser } from '../client/parser';
import { ArrayReply, BlobStringReply } from '../RESP/types';
declare const _default: {
readonly NOT_KEYED_COMMAND: true;
readonly IS_READ_ONLY: true;
/**
* Returns a list of all configured ACL usernames
* @param parser - The Redis command parser
*/
readonly parseCommand: (this: void, parser: CommandParser) => void;
readonly transformReply: () => ArrayReply<BlobStringReply>;
};
export default _default;
//# sourceMappingURL=ACL_USERS.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_USERS.d.ts","sourceRoot":"","sources":["../../../lib/commands/ACL_USERS.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAW,MAAM,eAAe,CAAC;;;;IAKnE;;;OAGG;gDACkB,aAAa;mCAGY,WAAW,eAAe,CAAC;;AAV3E,wBAW6B"}

View File

@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
NOT_KEYED_COMMAND: true,
IS_READ_ONLY: true,
/**
* Returns a list of all configured ACL usernames
* @param parser - The Redis command parser
*/
parseCommand(parser) {
parser.push('ACL', 'USERS');
},
transformReply: undefined
};
//# sourceMappingURL=ACL_USERS.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_USERS.js","sourceRoot":"","sources":["../../../lib/commands/ACL_USERS.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,iBAAiB,EAAE,IAAI;IACvB,YAAY,EAAE,IAAI;IAClB;;;OAGG;IACH,YAAY,CAAC,MAAqB;QAChC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC9B,CAAC;IACD,cAAc,EAAE,SAAyD;CAC/C,CAAC"}

View File

@@ -0,0 +1,14 @@
import { CommandParser } from '../client/parser';
import { BlobStringReply } from '../RESP/types';
declare const _default: {
readonly NOT_KEYED_COMMAND: true;
readonly IS_READ_ONLY: true;
/**
* Returns the username of the current connection
* @param parser - The Redis command parser
*/
readonly parseCommand: (this: void, parser: CommandParser) => void;
readonly transformReply: () => BlobStringReply;
};
export default _default;
//# sourceMappingURL=ACL_WHOAMI.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_WHOAMI.d.ts","sourceRoot":"","sources":["../../../lib/commands/ACL_WHOAMI.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAW,MAAM,eAAe,CAAC;;;;IAKvD;;;OAGG;gDACkB,aAAa;mCAGY,eAAe;;AAV/D,wBAW6B"}

View File

@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
NOT_KEYED_COMMAND: true,
IS_READ_ONLY: true,
/**
* Returns the username of the current connection
* @param parser - The Redis command parser
*/
parseCommand(parser) {
parser.push('ACL', 'WHOAMI');
},
transformReply: undefined
};
//# sourceMappingURL=ACL_WHOAMI.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ACL_WHOAMI.js","sourceRoot":"","sources":["../../../lib/commands/ACL_WHOAMI.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,iBAAiB,EAAE,IAAI;IACvB,YAAY,EAAE,IAAI;IAClB;;;OAGG;IACH,YAAY,CAAC,MAAqB;QAChC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC/B,CAAC;IACD,cAAc,EAAE,SAA6C;CACnC,CAAC"}

View File

@@ -0,0 +1,15 @@
import { CommandParser } from '../client/parser';
import { RedisArgument, NumberReply } from '../RESP/types';
declare const _default: {
readonly IS_READ_ONLY: false;
/**
* Appends a value to a string key
* @param parser - The Redis command parser
* @param key - The key to append to
* @param value - The value to append
*/
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, value: RedisArgument) => void;
readonly transformReply: () => NumberReply;
};
export default _default;
//# sourceMappingURL=APPEND.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"APPEND.d.ts","sourceRoot":"","sources":["../../../lib/commands/APPEND.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAW,MAAM,eAAe,CAAC;;;IAIlE;;;;;OAKG;gDACkB,aAAa,OAAO,aAAa,SAAS,aAAa;mCAI9B,WAAW;;AAZ3D,wBAa6B"}

16
node_modules/@redis/client/dist/lib/commands/APPEND.js generated vendored Normal file
View File

@@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: false,
/**
* Appends a value to a string key
* @param parser - The Redis command parser
* @param key - The key to append to
* @param value - The value to append
*/
parseCommand(parser, key, value) {
parser.push('APPEND', key, value);
},
transformReply: undefined
};
//# sourceMappingURL=APPEND.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"APPEND.js","sourceRoot":"","sources":["../../../lib/commands/APPEND.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;OAKG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,KAAoB;QAC1E,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC;IAED,cAAc,EAAE,SAAyC;CAC/B,CAAC"}

View File

@@ -0,0 +1,15 @@
import { CommandParser } from '../client/parser';
import { SimpleStringReply } from '../RESP/types';
export declare const ASKING_CMD = "ASKING";
declare const _default: {
readonly NOT_KEYED_COMMAND: true;
readonly IS_READ_ONLY: true;
/**
* Tells a Redis cluster node that the client is ok receiving such redirects
* @param parser - The Redis command parser
*/
readonly parseCommand: (this: void, parser: CommandParser) => void;
readonly transformReply: () => SimpleStringReply<'OK'>;
};
export default _default;
//# sourceMappingURL=ASKING.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ASKING.d.ts","sourceRoot":"","sources":["../../../lib/commands/ASKING.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAW,MAAM,eAAe,CAAC;AAE3D,eAAO,MAAM,UAAU,WAAW,CAAC;;;;IAKjC;;;OAGG;gDACkB,aAAa;mCAGY,kBAAkB,IAAI,CAAC;;AAVvE,wBAW6B"}

17
node_modules/@redis/client/dist/lib/commands/ASKING.js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ASKING_CMD = void 0;
exports.ASKING_CMD = 'ASKING';
exports.default = {
NOT_KEYED_COMMAND: true,
IS_READ_ONLY: true,
/**
* Tells a Redis cluster node that the client is ok receiving such redirects
* @param parser - The Redis command parser
*/
parseCommand(parser) {
parser.push(exports.ASKING_CMD);
},
transformReply: undefined
};
//# sourceMappingURL=ASKING.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ASKING.js","sourceRoot":"","sources":["../../../lib/commands/ASKING.ts"],"names":[],"mappings":";;;AAGa,QAAA,UAAU,GAAG,QAAQ,CAAC;AAEnC,kBAAe;IACb,iBAAiB,EAAE,IAAI;IACvB,YAAY,EAAE,IAAI;IAClB;;;OAGG;IACH,YAAY,CAAC,MAAqB;QAChC,MAAM,CAAC,IAAI,CAAC,kBAAU,CAAC,CAAC;IAC1B,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC"}

21
node_modules/@redis/client/dist/lib/commands/AUTH.d.ts generated vendored Normal file
View File

@@ -0,0 +1,21 @@
import { CommandParser } from '../client/parser';
import { RedisArgument, SimpleStringReply } from '../RESP/types';
export interface AuthOptions {
username?: RedisArgument;
password: RedisArgument;
}
declare const _default: {
readonly NOT_KEYED_COMMAND: true;
readonly IS_READ_ONLY: true;
/**
* Authenticates the connection using a password or username and password
* @param parser - The Redis command parser
* @param options - Authentication options containing username and/or password
* @param options.username - Optional username for authentication
* @param options.password - Password for authentication
*/
readonly parseCommand: (this: void, parser: CommandParser, { username, password }: AuthOptions) => void;
readonly transformReply: () => SimpleStringReply<'OK'>;
};
export default _default;
//# sourceMappingURL=AUTH.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"AUTH.d.ts","sourceRoot":"","sources":["../../../lib/commands/AUTH.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAW,MAAM,eAAe,CAAC;AAE1E,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,QAAQ,EAAE,aAAa,CAAC;CACzB;;;;IAKC;;;;;;OAMG;gDACkB,aAAa,0BAA0B,WAAW;mCAOzB,kBAAkB,IAAI,CAAC;;AAjBvE,wBAkB6B"}

22
node_modules/@redis/client/dist/lib/commands/AUTH.js generated vendored Normal file
View File

@@ -0,0 +1,22 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
NOT_KEYED_COMMAND: true,
IS_READ_ONLY: true,
/**
* Authenticates the connection using a password or username and password
* @param parser - The Redis command parser
* @param options - Authentication options containing username and/or password
* @param options.username - Optional username for authentication
* @param options.password - Password for authentication
*/
parseCommand(parser, { username, password }) {
parser.push('AUTH');
if (username !== undefined) {
parser.push(username);
}
parser.push(password);
},
transformReply: undefined
};
//# sourceMappingURL=AUTH.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"AUTH.js","sourceRoot":"","sources":["../../../lib/commands/AUTH.ts"],"names":[],"mappings":";;AAQA,kBAAe;IACb,iBAAiB,EAAE,IAAI;IACvB,YAAY,EAAE,IAAI;IAClB;;;;;;OAMG;IACH,YAAY,CAAC,MAAqB,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAe;QACrE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACpB,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACxB,CAAC;QACD,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC"}

View File

@@ -0,0 +1,14 @@
import { CommandParser } from '../client/parser';
import { SimpleStringReply } from '../RESP/types';
declare const _default: {
readonly NOT_KEYED_COMMAND: true;
readonly IS_READ_ONLY: true;
/**
* Asynchronously rewrites the append-only file
* @param parser - The Redis command parser
*/
readonly parseCommand: (this: void, parser: CommandParser) => void;
readonly transformReply: () => SimpleStringReply;
};
export default _default;
//# sourceMappingURL=BGREWRITEAOF.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"BGREWRITEAOF.d.ts","sourceRoot":"","sources":["../../../lib/commands/BGREWRITEAOF.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAW,MAAM,eAAe,CAAC;;;;IAKzD;;;OAGG;gDACkB,aAAa;mCAGY,iBAAiB;;AAVjE,wBAW6B"}

View File

@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
NOT_KEYED_COMMAND: true,
IS_READ_ONLY: true,
/**
* Asynchronously rewrites the append-only file
* @param parser - The Redis command parser
*/
parseCommand(parser) {
parser.push('BGREWRITEAOF');
},
transformReply: undefined
};
//# sourceMappingURL=BGREWRITEAOF.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"BGREWRITEAOF.js","sourceRoot":"","sources":["../../../lib/commands/BGREWRITEAOF.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,iBAAiB,EAAE,IAAI;IACvB,YAAY,EAAE,IAAI;IAClB;;;OAGG;IACH,YAAY,CAAC,MAAqB;QAChC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC9B,CAAC;IACD,cAAc,EAAE,SAA+C;CACrC,CAAC"}

View File

@@ -0,0 +1,19 @@
import { CommandParser } from '../client/parser';
import { SimpleStringReply } from '../RESP/types';
export interface BgSaveOptions {
SCHEDULE?: boolean;
}
declare const _default: {
readonly NOT_KEYED_COMMAND: true;
readonly IS_READ_ONLY: true;
/**
* Asynchronously saves the dataset to disk
* @param parser - The Redis command parser
* @param options - Optional configuration
* @param options.SCHEDULE - Schedule a BGSAVE operation when no BGSAVE is already in progress
*/
readonly parseCommand: (this: void, parser: CommandParser, options?: BgSaveOptions) => void;
readonly transformReply: () => SimpleStringReply;
};
export default _default;
//# sourceMappingURL=BGSAVE.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"BGSAVE.d.ts","sourceRoot":"","sources":["../../../lib/commands/BGSAVE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAW,MAAM,eAAe,CAAC;AAE3D,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;;;;IAKC;;;;;OAKG;gDACkB,aAAa,YAAY,aAAa;mCAMb,iBAAiB;;AAfjE,wBAgB6B"}

20
node_modules/@redis/client/dist/lib/commands/BGSAVE.js generated vendored Normal file
View File

@@ -0,0 +1,20 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
NOT_KEYED_COMMAND: true,
IS_READ_ONLY: true,
/**
* Asynchronously saves the dataset to disk
* @param parser - The Redis command parser
* @param options - Optional configuration
* @param options.SCHEDULE - Schedule a BGSAVE operation when no BGSAVE is already in progress
*/
parseCommand(parser, options) {
parser.push('BGSAVE');
if (options?.SCHEDULE) {
parser.push('SCHEDULE');
}
},
transformReply: undefined
};
//# sourceMappingURL=BGSAVE.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"BGSAVE.js","sourceRoot":"","sources":["../../../lib/commands/BGSAVE.ts"],"names":[],"mappings":";;AAOA,kBAAe;IACb,iBAAiB,EAAE,IAAI;IACvB,YAAY,EAAE,IAAI;IAClB;;;;;OAKG;IACH,YAAY,CAAC,MAAqB,EAAE,OAAuB;QACzD,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACtB,IAAI,OAAO,EAAE,QAAQ,EAAE,CAAC;YACtB,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAA+C;CACrC,CAAC"}

View File

@@ -0,0 +1,24 @@
import { CommandParser } from '../client/parser';
import { RedisArgument, NumberReply } from '../RESP/types';
export interface BitCountRange {
start: number;
end: number;
mode?: 'BYTE' | 'BIT';
}
declare const _default: {
readonly CACHEABLE: true;
readonly IS_READ_ONLY: true;
/**
* Returns the count of set bits in a string key
* @param parser - The Redis command parser
* @param key - The key to count bits in
* @param range - Optional range specification
* @param range.start - Start offset in bytes/bits
* @param range.end - End offset in bytes/bits
* @param range.mode - Optional counting mode: BYTE or BIT
*/
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, range?: BitCountRange) => void;
readonly transformReply: () => NumberReply;
};
export default _default;
//# sourceMappingURL=BITCOUNT.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"BITCOUNT.d.ts","sourceRoot":"","sources":["../../../lib/commands/BITCOUNT.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAW,MAAM,eAAe,CAAC;AAEpE,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;CACvB;;;;IAKC;;;;;;;;OAQG;gDACkB,aAAa,OAAO,aAAa,UAAU,aAAa;mCAY/B,WAAW;;AAxB3D,wBAyB6B"}

View File

@@ -0,0 +1,28 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
CACHEABLE: true,
IS_READ_ONLY: true,
/**
* Returns the count of set bits in a string key
* @param parser - The Redis command parser
* @param key - The key to count bits in
* @param range - Optional range specification
* @param range.start - Start offset in bytes/bits
* @param range.end - End offset in bytes/bits
* @param range.mode - Optional counting mode: BYTE or BIT
*/
parseCommand(parser, key, range) {
parser.push('BITCOUNT');
parser.pushKey(key);
if (range) {
parser.push(range.start.toString());
parser.push(range.end.toString());
if (range.mode) {
parser.push(range.mode);
}
}
},
transformReply: undefined
};
//# sourceMappingURL=BITCOUNT.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"BITCOUNT.js","sourceRoot":"","sources":["../../../lib/commands/BITCOUNT.ts"],"names":[],"mappings":";;AASA,kBAAe;IACb,SAAS,EAAE,IAAI;IACf,YAAY,EAAE,IAAI;IAClB;;;;;;;;OAQG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,KAAqB;QAC3E,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,IAAI,KAAK,EAAE,CAAC;YACV,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;YACpC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;YAElC,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;gBACf,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YAC1B,CAAC;QACH,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAyC;CAC/B,CAAC"}

View File

@@ -0,0 +1,38 @@
import { CommandParser } from '../client/parser';
import { RedisArgument, ArrayReply, NumberReply, NullReply } from '../RESP/types';
export type BitFieldEncoding = `${'i' | 'u'}${number}`;
export interface BitFieldOperation<S extends string> {
operation: S;
}
export interface BitFieldGetOperation extends BitFieldOperation<'GET'> {
encoding: BitFieldEncoding;
offset: number | string;
}
export interface BitFieldSetOperation extends BitFieldOperation<'SET'> {
encoding: BitFieldEncoding;
offset: number | string;
value: number;
}
export interface BitFieldIncrByOperation extends BitFieldOperation<'INCRBY'> {
encoding: BitFieldEncoding;
offset: number | string;
increment: number;
}
export interface BitFieldOverflowOperation extends BitFieldOperation<'OVERFLOW'> {
behavior: string;
}
export type BitFieldOperations = Array<BitFieldGetOperation | BitFieldSetOperation | BitFieldIncrByOperation | BitFieldOverflowOperation>;
export type BitFieldRoOperations = Array<Omit<BitFieldGetOperation, 'operation'>>;
declare const _default: {
readonly IS_READ_ONLY: false;
/**
* Performs arbitrary bitfield integer operations on strings
* @param parser - The Redis command parser
* @param key - The key holding the string
* @param operations - Array of bitfield operations to perform: GET, SET, INCRBY or OVERFLOW
*/
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, operations: BitFieldOperations) => void;
readonly transformReply: () => ArrayReply<NumberReply | NullReply>;
};
export default _default;
//# sourceMappingURL=BITFIELD.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"BITFIELD.d.ts","sourceRoot":"","sources":["../../../lib/commands/BITFIELD.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAW,MAAM,eAAe,CAAC;AAE3F,MAAM,MAAM,gBAAgB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,MAAM,EAAE,CAAC;AAEvD,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,MAAM;IACjD,SAAS,EAAE,CAAC,CAAC;CACd;AAED,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB,CAAC,KAAK,CAAC;IACpE,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB,CAAC,KAAK,CAAC;IACpE,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB,CAAC,QAAQ,CAAC;IAC1E,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB,CAAC,UAAU,CAAC;IAC9E,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,kBAAkB,GAAG,KAAK,CACpC,oBAAoB,GACpB,oBAAoB,GACpB,uBAAuB,GACvB,yBAAyB,CAC1B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,KAAK,CACtC,IAAI,CAAC,oBAAoB,EAAE,WAAW,CAAC,CACxC,CAAC;;;IAIA;;;;;OAKG;gDACkB,aAAa,OAAO,aAAa;mCAyCR,WAAW,WAAW,GAAG,SAAS,CAAC;;AAjDnF,wBAkD6B"}

View File

@@ -0,0 +1,33 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: false,
/**
* Performs arbitrary bitfield integer operations on strings
* @param parser - The Redis command parser
* @param key - The key holding the string
* @param operations - Array of bitfield operations to perform: GET, SET, INCRBY or OVERFLOW
*/
parseCommand(parser, key, operations) {
parser.push('BITFIELD');
parser.pushKey(key);
for (const options of operations) {
switch (options.operation) {
case 'GET':
parser.push('GET', options.encoding, options.offset.toString());
break;
case 'SET':
parser.push('SET', options.encoding, options.offset.toString(), options.value.toString());
break;
case 'INCRBY':
parser.push('INCRBY', options.encoding, options.offset.toString(), options.increment.toString());
break;
case 'OVERFLOW':
parser.push('OVERFLOW', options.behavior);
break;
}
}
},
transformReply: undefined
};
//# sourceMappingURL=BITFIELD.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"BITFIELD.js","sourceRoot":"","sources":["../../../lib/commands/BITFIELD.ts"],"names":[],"mappings":";;AAyCA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;OAKG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,UAA8B;QACpF,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,KAAK,MAAM,OAAO,IAAI,UAAU,EAAE,CAAC;YACjC,QAAQ,OAAO,CAAC,SAAS,EAAE,CAAC;gBAC1B,KAAK,KAAK;oBACR,MAAM,CAAC,IAAI,CACT,KAAK,EACL,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,CAC1B,CAAC;oBACF,MAAM;gBAER,KAAK,KAAK;oBACR,MAAM,CAAC,IAAI,CACT,KAAK,EACL,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,EACzB,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,CACzB,CAAC;oBACF,MAAM;gBAER,KAAK,QAAQ;oBACX,MAAM,CAAC,IAAI,CACT,QAAQ,EACR,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,EACzB,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE,CAC7B,CAAC;oBACF,MAAM;gBAER,KAAK,UAAU;oBACb,MAAM,CAAC,IAAI,CACT,UAAU,EACV,OAAO,CAAC,QAAQ,CACjB,CAAC;oBACF,MAAM;YACV,CAAC;QACH,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAiE;CACvD,CAAC"}

View File

@@ -0,0 +1,18 @@
import { CommandParser } from '../client/parser';
import { RedisArgument, ArrayReply, NumberReply } from '../RESP/types';
import { BitFieldGetOperation } from './BITFIELD';
export type BitFieldRoOperations = Array<Omit<BitFieldGetOperation, 'operation'>>;
declare const _default: {
readonly CACHEABLE: true;
readonly IS_READ_ONLY: true;
/**
* Performs read-only bitfield integer operations on strings
* @param parser - The Redis command parser
* @param key - The key holding the string
* @param operations - Array of GET operations to perform on the bitfield
*/
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, operations: BitFieldRoOperations) => void;
readonly transformReply: () => ArrayReply<NumberReply>;
};
export default _default;
//# sourceMappingURL=BITFIELD_RO.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"BITFIELD_RO.d.ts","sourceRoot":"","sources":["../../../lib/commands/BITFIELD_RO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAW,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,MAAM,oBAAoB,GAAG,KAAK,CACtC,IAAI,CAAC,oBAAoB,EAAE,WAAW,CAAC,CACxC,CAAC;;;;IAKA;;;;;OAKG;gDACkB,aAAa,OAAO,aAAa;mCAUR,WAAW,WAAW,CAAC;;AAnBvE,wBAoB6B"}

View File

@@ -0,0 +1,23 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
CACHEABLE: true,
IS_READ_ONLY: true,
/**
* Performs read-only bitfield integer operations on strings
* @param parser - The Redis command parser
* @param key - The key holding the string
* @param operations - Array of GET operations to perform on the bitfield
*/
parseCommand(parser, key, operations) {
parser.push('BITFIELD_RO');
parser.pushKey(key);
for (const operation of operations) {
parser.push('GET');
parser.push(operation.encoding);
parser.push(operation.offset.toString());
}
},
transformReply: undefined
};
//# sourceMappingURL=BITFIELD_RO.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"BITFIELD_RO.js","sourceRoot":"","sources":["../../../lib/commands/BITFIELD_RO.ts"],"names":[],"mappings":";;AAQA,kBAAe;IACb,SAAS,EAAE,IAAI;IACf,YAAY,EAAE,IAAI;IAClB;;;;;OAKG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,UAAgC;QACtF,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;YACnC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACnB,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;YAChC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAA;QAC1C,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC"}

View File

@@ -0,0 +1,18 @@
import { CommandParser } from '../client/parser';
import { NumberReply, RedisArgument } from '../RESP/types';
import { RedisVariadicArgument } from './generic-transformers';
export type BitOperations = 'AND' | 'OR' | 'XOR' | 'NOT' | 'DIFF' | 'DIFF1' | 'ANDOR' | 'ONE';
declare const _default: {
readonly IS_READ_ONLY: false;
/**
* Performs bitwise operations between strings
* @param parser - The Redis command parser
* @param operation - Bitwise operation to perform: AND, OR, XOR, NOT, DIFF, DIFF1, ANDOR, ONE
* @param destKey - Destination key to store the result
* @param key - Source key(s) to perform operation on
*/
readonly parseCommand: (this: void, parser: CommandParser, operation: BitOperations, destKey: RedisArgument, key: RedisVariadicArgument) => void;
readonly transformReply: () => NumberReply;
};
export default _default;
//# sourceMappingURL=BITOP.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"BITOP.d.ts","sourceRoot":"","sources":["../../../lib/commands/BITOP.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAW,aAAa,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,CAAC;;;IAI5F;;;;;;OAMG;gDAEO,aAAa,aACV,aAAa,WACf,aAAa,OACjB,qBAAqB;mCAMkB,WAAW;;AAnB3D,wBAoB6B"}

19
node_modules/@redis/client/dist/lib/commands/BITOP.js generated vendored Normal file
View File

@@ -0,0 +1,19 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: false,
/**
* Performs bitwise operations between strings
* @param parser - The Redis command parser
* @param operation - Bitwise operation to perform: AND, OR, XOR, NOT, DIFF, DIFF1, ANDOR, ONE
* @param destKey - Destination key to store the result
* @param key - Source key(s) to perform operation on
*/
parseCommand(parser, operation, destKey, key) {
parser.push('BITOP', operation);
parser.pushKey(destKey);
parser.pushKeys(key);
},
transformReply: undefined
};
//# sourceMappingURL=BITOP.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"BITOP.js","sourceRoot":"","sources":["../../../lib/commands/BITOP.ts"],"names":[],"mappings":";;AAMA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;OAMG;IACH,YAAY,CACV,MAAqB,EACrB,SAAwB,EACxB,OAAsB,EACtB,GAA0B;QAExB,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QAChC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACxB,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;IACD,cAAc,EAAE,SAAyC;CAC/B,CAAC"}

View File

@@ -0,0 +1,20 @@
import { CommandParser } from '../client/parser';
import { RedisArgument, NumberReply } from '../RESP/types';
import { BitValue } from './generic-transformers';
declare const _default: {
readonly CACHEABLE: true;
readonly IS_READ_ONLY: true;
/**
* Returns the position of first bit set to 0 or 1 in a string
* @param parser - The Redis command parser
* @param key - The key holding the string
* @param bit - The bit value to look for (0 or 1)
* @param start - Optional starting position in bytes/bits
* @param end - Optional ending position in bytes/bits
* @param mode - Optional counting mode: BYTE or BIT
*/
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, bit: BitValue, start?: number, end?: number, mode?: 'BYTE' | 'BIT') => void;
readonly transformReply: () => NumberReply;
};
export default _default;
//# sourceMappingURL=BITPOS.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"BITPOS.d.ts","sourceRoot":"","sources":["../../../lib/commands/BITPOS.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAW,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;;;;IAKhD;;;;;;;;OAQG;gDACkB,aAAa,OAC3B,aAAa,OACb,QAAQ,UACL,MAAM,QACR,MAAM,SACL,MAAM,GAAG,KAAK;mCAkBuB,WAAW;;AAnC3D,wBAoC6B"}

31
node_modules/@redis/client/dist/lib/commands/BITPOS.js generated vendored Normal file
View File

@@ -0,0 +1,31 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
CACHEABLE: true,
IS_READ_ONLY: true,
/**
* Returns the position of first bit set to 0 or 1 in a string
* @param parser - The Redis command parser
* @param key - The key holding the string
* @param bit - The bit value to look for (0 or 1)
* @param start - Optional starting position in bytes/bits
* @param end - Optional ending position in bytes/bits
* @param mode - Optional counting mode: BYTE or BIT
*/
parseCommand(parser, key, bit, start, end, mode) {
parser.push('BITPOS');
parser.pushKey(key);
parser.push(bit.toString());
if (start !== undefined) {
parser.push(start.toString());
}
if (end !== undefined) {
parser.push(end.toString());
}
if (mode) {
parser.push(mode);
}
},
transformReply: undefined
};
//# sourceMappingURL=BITPOS.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"BITPOS.js","sourceRoot":"","sources":["../../../lib/commands/BITPOS.ts"],"names":[],"mappings":";;AAIA,kBAAe;IACb,SAAS,EAAE,IAAI;IACf,YAAY,EAAE,IAAI;IAClB;;;;;;;;OAQG;IACH,YAAY,CAAC,MAAqB,EAChC,GAAkB,EAClB,GAAa,EACb,KAAc,EACd,GAAY,EACZ,IAAqB;QAErB,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACtB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;QAE5B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QAChC,CAAC;QAED,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;YACtB,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC9B,CAAC;QAED,IAAI,IAAI,EAAE,CAAC;YACT,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAyC;CAC/B,CAAC"}

View File

@@ -0,0 +1,19 @@
import { CommandParser } from '../client/parser';
import { RedisArgument, BlobStringReply, NullReply } from '../RESP/types';
import { ListSide } from './generic-transformers';
declare const _default: {
readonly IS_READ_ONLY: false;
/**
* Pop an element from a list, push it to another list and return it; or block until one is available
* @param parser - The Redis command parser
* @param source - Key of the source list
* @param destination - Key of the destination list
* @param sourceSide - Side of source list to pop from (LEFT or RIGHT)
* @param destinationSide - Side of destination list to push to (LEFT or RIGHT)
* @param timeout - Timeout in seconds, 0 to block indefinitely
*/
readonly parseCommand: (this: void, parser: CommandParser, source: RedisArgument, destination: RedisArgument, sourceSide: ListSide, destinationSide: ListSide, timeout: number) => void;
readonly transformReply: () => BlobStringReply | NullReply;
};
export default _default;
//# sourceMappingURL=BLMOVE.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"BLMOVE.d.ts","sourceRoot":"","sources":["../../../lib/commands/BLMOVE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,SAAS,EAAW,MAAM,eAAe,CAAC;AACnF,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;;;IAIhD;;;;;;;;OAQG;gDAEO,aAAa,UACb,aAAa,eACR,aAAa,cACd,QAAQ,mBACH,QAAQ,WAChB,MAAM;mCAM6B,eAAe,GAAG,SAAS;;AAvB3E,wBAwB6B"}

21
node_modules/@redis/client/dist/lib/commands/BLMOVE.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: false,
/**
* Pop an element from a list, push it to another list and return it; or block until one is available
* @param parser - The Redis command parser
* @param source - Key of the source list
* @param destination - Key of the destination list
* @param sourceSide - Side of source list to pop from (LEFT or RIGHT)
* @param destinationSide - Side of destination list to push to (LEFT or RIGHT)
* @param timeout - Timeout in seconds, 0 to block indefinitely
*/
parseCommand(parser, source, destination, sourceSide, destinationSide, timeout) {
parser.push('BLMOVE');
parser.pushKeys([source, destination]);
parser.push(sourceSide, destinationSide, timeout.toString());
},
transformReply: undefined
};
//# sourceMappingURL=BLMOVE.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"BLMOVE.js","sourceRoot":"","sources":["../../../lib/commands/BLMOVE.ts"],"names":[],"mappings":";;AAIA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;OAQG;IACH,YAAY,CACV,MAAqB,EACrB,MAAqB,EACrB,WAA0B,EAC1B,UAAoB,EACpB,eAAyB,EACzB,OAAe;QAEf,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACtB,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC;QACvC,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,eAAe,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAA;IAC9D,CAAC;IACD,cAAc,EAAE,SAAyD;CAC/C,CAAC"}

View File

@@ -0,0 +1,14 @@
import { CommandParser } from '../client/parser';
declare const _default: {
readonly IS_READ_ONLY: false;
/**
* Pops elements from multiple lists; blocks until elements are available
* @param parser - The Redis command parser
* @param timeout - Timeout in seconds, 0 to block indefinitely
* @param args - Additional arguments for LMPOP command
*/
readonly parseCommand: (this: void, parser: CommandParser, timeout: number, keys: import("./generic-transformers").RedisVariadicArgument, side: import("./generic-transformers").ListSide, options?: import("./LMPOP").LMPopOptions | undefined) => void;
readonly transformReply: () => import("../RESP/types").NullReply | import("../RESP/types").TuplesReply<[key: import("../RESP/types").BlobStringReply<string>, elements: import("../RESP/types").BlobStringReply<string>[]]>;
};
export default _default;
//# sourceMappingURL=BLMPOP.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"BLMPOP.d.ts","sourceRoot":"","sources":["../../../lib/commands/BLMPOP.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;;;IAM/C;;;;;OAKG;gDACkB,aAAa,WAAW,MAAM;;;AARrD,wBAa6B"}

41
node_modules/@redis/client/dist/lib/commands/BLMPOP.js generated vendored Normal file
View File

@@ -0,0 +1,41 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const LMPOP_1 = __importStar(require("./LMPOP"));
exports.default = {
IS_READ_ONLY: false,
/**
* Pops elements from multiple lists; blocks until elements are available
* @param parser - The Redis command parser
* @param timeout - Timeout in seconds, 0 to block indefinitely
* @param args - Additional arguments for LMPOP command
*/
parseCommand(parser, timeout, ...args) {
parser.push('BLMPOP', timeout.toString());
(0, LMPOP_1.parseLMPopArguments)(parser, ...args);
},
transformReply: LMPOP_1.default.transformReply
};
//# sourceMappingURL=BLMPOP.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"BLMPOP.js","sourceRoot":"","sources":["../../../lib/commands/BLMPOP.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,iDAAqE;AAErE,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;OAKG;IACH,YAAY,CAAC,MAAqB,EAAE,OAAe,EAAE,GAAG,IAAoB;QAC1E,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC1C,IAAA,2BAAmB,EAAC,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC;IACvC,CAAC;IACD,cAAc,EAAE,eAAK,CAAC,cAAc;CACV,CAAC"}

Some files were not shown because too many files have changed in this diff Show More