Type Alias fred::types::MultipleValues

source ·
pub type MultipleValues = RedisValue;
Expand description

Convenience interface for commands that take 1 or more values.

Aliased Type§

enum MultipleValues {
    Boolean(bool),
    Integer(i64),
    Double(f64),
    String(StrInner<Bytes>),
    Bytes(Bytes),
    Null,
    Queued,
    Map(RedisMap),
    Array(Vec<RedisValue>),
}

Variants§

§

Boolean(bool)

A boolean value.

§

Integer(i64)

An integer value.

§

Double(f64)

A double floating point number.

§

String(StrInner<Bytes>)

A string value.

§

Bytes(Bytes)

A byte array value.

§

Null

A nil value.

§

Queued

A special value used to indicate a MULTI block command was received by the server.

§

Map(RedisMap)

A map of key/value pairs, primarily used in RESP3 mode.

§

Array(Vec<RedisValue>)

An ordered list of values.

In RESP2 mode the server usually sends map structures as an array of key/value pairs.