RedisClientType

Define what kind of behavior is expected from the client.

Name

Description

STANDALONE

The client should work in single server mode (the default).

SENTINEL

The client should work in sentinel mode. When this mode is active use the link to define which role to get the client connection to.

CLUSTER

The client should work in cluster mode. When this mode is active use the link to define when slave nodes can be used for read only queries.

RedisRole

Define which kind of role to be used in HA mode.

Name

Description

MASTER

Use a MASTER node connection.

SLAVE

Use a SLAVE node connection.

SENTINEL

Use a SENTINEL node connection.

RedisSlaves

When should Redis Slave nodes be used for queries.

Name

Description

NEVER

Never use SLAVES, queries are always run on a MASTER node.

SHARE

Queries can be randomly run on both MASTER and SLAVE nodes.

ALWAYS

Queries are always run on SLAVE nodes (never on MASTER node).

ResponseType

Define the response types that the client can receive from REDIS.

Name

Description

SIMPLE

C String simple String.

ERROR

C String simple String representing an error.

BOOLEAN

boolean value.

NUMBER

numeric value.

BULK

byte array value.

PUSH

Push message

ATTRIBUTE

Attribute message

MULTI

List of multiple bulk responses (List, Set, Map).