UNPKG

@valkey/client

Version:

The source code and documentation for this package are in the main [node-redis](https://github.com/redis/node-redis) repo.

13 lines (12 loc) 413 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.transformArguments = exports.FIRST_KEY_INDEX = void 0; exports.FIRST_KEY_INDEX = 2; function transformArguments(key, group, id, options) { const args = ["XGROUP", "CREATE", key, group, id]; if (options?.MKSTREAM) { args.push("MKSTREAM"); } return args; } exports.transformArguments = transformArguments;