Skip to main content

reallyme_valkey_kit/
lib.rs

1// SPDX-FileCopyrightText: Copyright © 2026 ReallyMe LLC. All rights reserved
2//
3// SPDX-License-Identifier: MIT OR Apache-2.0
4
5#![forbid(unsafe_code)]
6#![deny(missing_docs)]
7#![cfg_attr(
8    not(test),
9    deny(clippy::unwrap_used, clippy::expect_used, clippy::panic)
10)]
11
12//! Reusable, security-hardened Valkey database connector.
13//!
14//! The kit owns environment and programmatic configuration, TLS-by-default
15//! connection setup, reconnect policy, readiness reporting, namespaced binary
16//! keys, generic typed commands and pipelines, TTL values, and low-cardinality
17//! errors. App adapters own schema, serialization, and business semantics.
18
19mod command;
20mod config;
21mod connector;
22mod error;
23mod value;
24
25pub use command::{ValkeyCommand, ValkeyPipeline, valkey_command, valkey_pipeline};
26pub use config::{ValkeyConfig, ValkeyConfigInput, ValkeyTlsTrust, ValkeyTransportSecurity};
27pub use connector::{ValkeyConnector, ValkeyHealthReport, ValkeyProtocolVersion};
28pub use error::{
29    ValkeyCommandErrorReason, ValkeyConfigErrorReason, ValkeyConfigField, ValkeyDataErrorReason,
30    ValkeyDataKind, ValkeyError, ValkeyResult, ValkeyRetryHint, ValkeySetupErrorReason,
31};
32pub use value::{ValkeyKey, ValkeyTimeToLive, ValkeyValue};