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/commands/ drwxr-xr-x | |
| Viewing file: Select action/file-type: "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
NOT_KEYED_COMMAND: true,
IS_READ_ONLY: true,
/**
* Controls server-assisted client side caching for the current connection
* @param parser - The Redis command parser
* @param mode - Whether to enable (true) or disable (false) tracking
* @param options - Optional configuration including REDIRECT, BCAST, PREFIX, OPTIN, OPTOUT, and NOLOOP options
*/
parseCommand(parser, mode, options) {
parser.push('CLIENT', 'TRACKING', mode ? 'ON' : 'OFF');
if (mode) {
if (options?.REDIRECT) {
parser.push('REDIRECT', options.REDIRECT.toString());
}
if (isBroadcast(options)) {
parser.push('BCAST');
if (options?.PREFIX) {
if (Array.isArray(options.PREFIX)) {
for (const prefix of options.PREFIX) {
parser.push('PREFIX', prefix);
}
}
else {
parser.push('PREFIX', options.PREFIX);
}
}
}
else if (isOptIn(options)) {
parser.push('OPTIN');
}
else if (isOptOut(options)) {
parser.push('OPTOUT');
}
if (options?.NOLOOP) {
parser.push('NOLOOP');
}
}
},
transformReply: undefined
};
function isBroadcast(options) {
return options?.BCAST === true;
}
function isOptIn(options) {
return options?.OPTIN === true;
}
function isOptOut(options) {
return options?.OPTOUT === true;
}
//# sourceMappingURL=CLIENT_TRACKING.js.map |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0479 ]-- |