aa-storage-redis 0.0.1-beta.2

Redis L2 shared-cache storage driver (SessionStore, RateLimitCounter, PolicyStore) for Agent Assembly
Documentation
1
2
3
4
5
6
7
8
9
//! Mapping from Redis / connection-pool failures to [`aa_storage::StorageError`].

use aa_storage::StorageError;

/// Map any backend transport, pool, or protocol failure to
/// [`StorageError::Backend`].
pub(crate) fn backend<E: core::fmt::Display>(err: E) -> StorageError {
    StorageError::Backend(err.to_string())
}