Skip to main content

Crate ruvio_client

Crate ruvio_client 

Source
Expand description

RESP2 client for Ruvio.

Connecting does not send CLIENT SETINFO or HELLO.

Structs§

Client
A Ruvio client. Against a single server it is one TCP connection. Against a sharded server it opens one connection per shard and sends each command to the shard that owns its key.
ClientOptions
Where to connect, and an optional password sent as AUTH.
ConnectionNotice
A command or subscriber socket dropped, or came back.
HashScanPage
One HSCAN page. A cursor of 0 means the scan is complete.
PubSubMessage
A Pub/Sub delivery: message, pmessage, or smessage.
ScanPage
One SCAN page. A cursor of 0 means the scan is complete.
SortedSetAddOptions
ZADD options. The server refuses NX with XX, GT, or LT, and GT with LT.
SortedSetEntry
A sorted-set member and its score.
StreamClaimOptions
XCLAIM options.
StreamEntry
One stream entry.
StreamPendingEntry
One row of the extended XPENDING form.
StreamPendingFilter
Optional narrowing for the extended XPENDING form.
StreamReadOptions
XREAD and XREADGROUP options.
StreamReadResult
Entries read from one stream key.

Enums§

Error
A transport failure, a broken RESP frame, or a Ruvio error reply.
FieldExpireCondition
When HEXPIRE and its siblings may change a field’s TTL. A field without a TTL counts as an infinite TTL for IfGreater and IfLess.
RespValue
One RESP2 value.
SetMode
How SET treats a key that already exists or is missing.

Functions§

hash_slot
CRC16-XMODEM of the key, or of the first non-empty {tag} in it.