Skip to main content

Module redis

Module redis 

Source
Expand description

Provides Redis-backed cache database and message bus backing implementations.

Modules§

cache
Redis-backed cache database for the system.
msgbus
Redis-backed message bus backing for the system.
queries

Traits§

RedisConnectionConfig
Redis connection settings shared by Redis-owned config structs.

Functions§

create_redis_connection
Creates a new Redis connection manager based on the provided database config and connection name.
flush_redis
Flushes the entire Redis database for the specified connection.
get_redis_url
Parses a Redis connection URL from the given Redis config, returning the full URL and a redacted version with the password obfuscated.
get_stream_key
Parse the stream key from the given identifiers and config.