Skip to main content

Crate fabryk_redis

Crate fabryk_redis 

Source
Expand description

Redis client abstraction for Fabryk.

Provides:

The trait uses concrete string-based methods (dyn-compatible). Free functions provide typed serialization/deserialization on top.

Structs§

MockRedis
In-memory mock Redis backed by a HashMap<String, String>.
RedisClient
Production Redis client with automatic reconnection.

Enums§

RedisError
Errors that can occur during Redis operations.

Traits§

RedisOps
Trait abstracting Redis operations for testability.

Functions§

get_json
Retrieve and deserialize a JSON value from the given key. Returns None if the key doesn’t exist.
get_multi_json
Get multiple JSON values by key. Missing keys and parse failures are skipped.
set_json
Store a JSON-serializable value at the given key.