//! Talk to Redis for counters, queues, pub/sub, and anything else you keep in memory across processes.
//!
//! This module gives you named Redis connections from `config.redis`. A [`Connection`] runs any
//! command of the [`client`] crate: its typed [`Commands`], pipelines, and scripts. Looking up a
//! connection never opens it. The connection's first command opens it.
//!
//! TLS connections use rustls. Building the application installs rustls's `ring` crypto provider
//! for the whole process, unless the application installed one first. To use another provider,
//! such as `aws-lc-rs`, install it in `main` before the application starts.
//!
//! ```no_run
//! # async fn example() -> laravel::Result<()> {
//! use laravel::prelude::*;
//! use laravel::redis::{self, Commands};
//!
//! redis::set_ex("user:1:name", "Taylor", 1.minute()).await?;
//! let name = redis::get("user:1:name").await?;
//! let visits = redis::connection("cache")?.incr("visits", 1).await?;
//! # Ok(()) }
//! ```
//!
//! To learn about configuration, clusters, pipelines, scripts, and pub/sub, check out the
//! [Redis guide](https://github.com/laravel/rust-framework/blob/0.x/docs/redis.md).
#[doc(inline)]
pub use laravel_redis::redis::{
Commands, Connection, Message, PendingCommand, PendingScript, RedisManager, Subscription, client, connection, decr,
default_connection, del, exists, expire, get, hdel, hget, hgetall, hset, incr, llen, lpop, lpush, lrange, manager,
rpop, rpush, sadd, set, set_ex, set_nx, sismember, smembers, srem, ttl, zadd, zrange, zrem, zscore,
};