Available since 1.0.0.

SISMEMBER key member

Returns if member is a member of the set stored at key.

Return value
Integer reply, specifically:
1 if the element is a member of the set. 0 if the element is not a member of the set, or if key does not exist.

Hierarchy

Constructors

Properties

DbDataType: DataType = DataType.SET
blocking?: boolean
dataType?: DataType

Used for "database" commands to enforce type checking.

logger: Logger = ...
maxParams: number = 2

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

minParams: number = 2

Minimum number of parameters require.

name: string = "sismember"
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.

Methods