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.

17 lines (16 loc) 532 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.transformArguments = exports.ValkeyFlushModes = void 0; var ValkeyFlushModes; (function (ValkeyFlushModes) { ValkeyFlushModes["ASYNC"] = "ASYNC"; ValkeyFlushModes["SYNC"] = "SYNC"; })(ValkeyFlushModes || (exports.ValkeyFlushModes = ValkeyFlushModes = {})); function transformArguments(mode) { const args = ["FLUSHALL"]; if (mode) { args.push(mode); } return args; } exports.transformArguments = transformArguments;