We use decorators to supply much of the information required Thus we make these fields optional

Hierarchy

Constructors

Properties

blocking?: boolean
dataType?: DataType

Used for "database" commands to enforce type checking.

logger: Logger = ...
maxParams: number = 1

Maximum number of parameters allowed. -1 for no maximum.

minParams: number = 0

Minimum number of parameters require.

name: string = "info"
pubSubAllowed?: boolean

Used when PUB/SUB is in effect.

sign?: number

Sign is used in commands with a compliment command. The only current example is INCR/DECR. Sign is 1 for INCR and -1 for DECR

txIgnore?: boolean

Used in transactions to enqueue a command.

DELIMITER: string = "\r\n"
SECTION_CLIENTS: string = "clients"
SECTION_COMMANDSTATS: string = "commandstats"
SECTION_CPU: string = "cpu"
SECTION_KEYSPACE: string = "keyspace"
SECTION_MEMORY: string = "memory"
SECTION_PERSISTENCE: string = "persistence"
SECTION_REPLICATION: string = "replication"
SECTION_SERVER: string = "server"
SECTION_STATS: string = "stats"
SEPARATOR: string = ":"
SHARP: string = "# "

Methods