Crate redis_swapplex
source · [−]Expand description
Atomic state-transition based Redis multiplexing with reconnection notifications. Connection configuration is provided by env-url.
REDIS_URL=redis://127.0.0.1:6379
REDIS_HOST_ENV=MONOLITH_STAGE_REDIS_MASTER_PORT_6379_TCP_ADDR
REDIS_PORT_ENV=MONOLITH_STAGE_REDIS_MASTER_SERVICE_PORT_REDISStructs
Default env-configured Redis connection manager
A multiplexed connection utilizing the respective connection manager
Traits
Trait for defining redis client creation and db selection
Functions
A stream notifying whenever the current or a new connection is connected; useful for client tracking redirection
Get a managed multiplexed connection for the default env-configured Redis database
Notify the next time a connection is established