48 releases

new 0.0.52 May 7, 2025
0.0.50 Mar 24, 2025
0.0.39 Nov 25, 2024
0.0.20 Jul 25, 2024
0.0.13 Mar 28, 2024

#1707 in Database interfaces

Download history 15/week @ 2025-01-15 114/week @ 2025-01-22 182/week @ 2025-01-29 258/week @ 2025-02-05 93/week @ 2025-02-12 194/week @ 2025-02-19 255/week @ 2025-02-26 29/week @ 2025-03-05 57/week @ 2025-03-12 172/week @ 2025-03-19 59/week @ 2025-03-26 68/week @ 2025-04-02 221/week @ 2025-04-09 32/week @ 2025-04-16 27/week @ 2025-04-23 31/week @ 2025-04-30

333 downloads per month
Used in 3 crates

MIT license

32KB
842 lines

Quick Microservices Redis - qm-redis

utilities to work with the Redis database


GitHub repositoryCargo packageDocs

github.com - quick-microservice-rs crates.io - qm-redis
github.com - workflow - build


Description

With this crate it is easy to get a Redis configuration with the most common settings. It also provides common helpers to handle locks and use workers with queues.

Usage

let redis_config = qm::redis::RedisConfig::new()?;

The Config is populated with environment variables. By default, all variables with the prefix REDIS_ are considered.

The prefix can be changed by using a builder pattern.

let example_config = qm::redis::RedisConfig::builder().with_prefix("REDIS_").build()?;

Variables and Defaults

These variables are available and are set with the following defaults.

variable struct field default
MONGODB_HOST host "127.0.0.1"
MONGODB_PORT port 6379
address redis://{host}:{port}/

Dependencies

~9–19MB
~252K SLoC