Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/sync/node_modules/@redis/client/dist/lib/client/ drwxr-xr-x | |
| Viewing file: Select action/file-type: "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BasicCommandParser = void 0;
class BasicCommandParser {
#redisArgs = [];
#keys = [];
preserve;
get redisArgs() {
return this.#redisArgs;
}
get keys() {
return this.#keys;
}
get firstKey() {
return this.#keys[0];
}
get cacheKey() {
const tmp = new Array(this.#redisArgs.length * 2);
for (let i = 0; i < this.#redisArgs.length; i++) {
tmp[i] = this.#redisArgs[i].length;
tmp[i + this.#redisArgs.length] = this.#redisArgs[i];
}
return tmp.join('_');
}
push(...arg) {
this.#redisArgs.push(...arg);
}
;
pushVariadic(vals) {
if (Array.isArray(vals)) {
for (const val of vals) {
this.push(val);
}
}
else {
this.push(vals);
}
}
pushVariadicWithLength(vals) {
if (Array.isArray(vals)) {
this.#redisArgs.push(vals.length.toString());
}
else {
this.#redisArgs.push('1');
}
this.pushVariadic(vals);
}
pushVariadicNumber(vals) {
if (Array.isArray(vals)) {
for (const val of vals) {
this.push(val.toString());
}
}
else {
this.push(vals.toString());
}
}
pushKey(key) {
this.#keys.push(key);
this.#redisArgs.push(key);
}
pushKeysLength(keys) {
if (Array.isArray(keys)) {
this.#redisArgs.push(keys.length.toString());
}
else {
this.#redisArgs.push('1');
}
this.pushKeys(keys);
}
pushKeys(keys) {
if (Array.isArray(keys)) {
this.#keys.push(...keys);
this.#redisArgs.push(...keys);
}
else {
this.#keys.push(keys);
this.#redisArgs.push(keys);
}
}
}
exports.BasicCommandParser = BasicCommandParser;
//# sourceMappingURL=parser.js.map |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0051 ]-- |