Skip to content
Clone
7735071
37 lines 891 B Rust
pub mod client;
pub mod conn;
pub mod error;
pub mod exec;
pub mod hash;
pub mod json;
pub mod keys;
pub mod list;
pub mod lock;
pub mod pipeline;
pub mod scripts;
pub mod set;
pub mod zset;
mod kv;
pub use client::{AppRedis, RedisConnection};
pub use conn::{BlockingConnection, CacheConn, CacheConnection};
pub use error::{CacheError, CacheResult};
pub use keys::{CacheKey, SEPARATOR, join, join_tagged, same_slot, slot_tag};
pub use kv::Cache;
pub use lock::{CacheLock, CacheLocks, RETRY_INTERVAL};
pub use pipeline::CachePipeline;
pub use scripts::{LuaScripts, RateLimit, unix_millis};
pub use redis;
#[macro_export]
macro_rules! redis_error_conversion {
($name:ident) => {
impl From<::redis::RedisError> for $name {
fn from(error: ::redis::RedisError) -> Self {
Self::Internal(format!("redis error: {error}"))
}
}
};
}