Skip to main content

Crate reallyme_valkey_kit

Crate reallyme_valkey_kit 

Source
Expand description

Reusable, security-hardened Valkey database connector.

The kit owns environment and programmatic configuration, TLS-by-default connection setup, reconnect policy, readiness reporting, namespaced binary keys, generic typed commands and pipelines, TTL values, and low-cardinality errors. App adapters own schema, serialization, and business semantics.

Structs§

ValkeyConfig
Validated Valkey client configuration.
ValkeyConfigInput
Raw Valkey configuration input.
ValkeyConnector
Reconnecting, multiplexed Valkey database connector.
ValkeyHealthReport
Low-cardinality readiness snapshot for a Valkey connector.
ValkeyKey
Validated binary key suffix.
ValkeyTimeToLive
Positive, bounded key expiration interval.
ValkeyValue
Validated binary value that clears its allocation on drop.

Enums§

ValkeyCommandErrorReason
Stable Valkey command failure reason.
ValkeyConfigErrorReason
Stable Valkey configuration failure reason.
ValkeyConfigField
Valkey configuration field identifier.
ValkeyDataErrorReason
Stable client-side data validation reason.
ValkeyDataKind
Bounded client-side data kind.
ValkeyError
Typed Valkey kit error without server text, keys, values, or credentials.
ValkeyProtocolVersion
Wire protocol selected for managed Valkey connections.
ValkeyRetryHint
Conservative retry guidance for an app-owned Valkey operation.
ValkeySetupErrorReason
Stable Valkey connection setup failure reason.
ValkeyTlsTrust
Certificate roots trusted by Valkey TLS connections.
ValkeyTransportSecurity
Valkey transport security policy.

Functions§

valkey_command
Starts a command with a compile-time command name.
valkey_pipeline
Starts a non-atomic command pipeline.

Type Aliases§

ValkeyCommand
A Valkey command whose response is decoded by crate::ValkeyConnector.
ValkeyPipeline
A Valkey command pipeline whose response is decoded by crate::ValkeyConnector.
ValkeyResult
Result alias for Valkey kit operations.