Module: vertx-redis-js/command

Classes

Command

Methods

(static) Command.create(command, arity, firstKey, lastKey, interval, readOnly, movable) → {Command}

Creates a Redis Command from METADATA. The metadata comes from the REDIS command "COMMAND" https://redis.io/commands/command Each top-level result contains six nested results. Each nested result is: command name command arity specification nested Array reply of command flags position of first key in argument list position of last key in argument list step count for locating repeating keys
Parameters:
Name Type Description
command string command name
arity number arity
firstKey number position of the first key
lastKey number position of the last key
interval number step count for locating repeating keys
readOnly boolean readOnly flag extracted from the nested Array reply of command flags
movable boolean movable flag extracted from the nested Array reply of command flags
Source:
Returns:
a command instance
Type
Command