Returns the primary backend configuration.
View Source Cachetastic.Config (Cachetastic v0.1.0)
Handles configuration and backend initialization for Cachetastic.
This module provides functions to start the backends and retrieve the primary and backup backend configurations from the application environment.
Examples
# Start the primary backend
{:ok, pid} = Cachetastic.Config.start_backend(:redis)
# Get the primary backend
primary_backend = Cachetastic.Config.primary_backend()
# Get the backup backend
backup_backend = Cachetastic.Config.backup_backend()
Summary
Functions
Returns the backup backend configuration.
Returns the primary backend configuration.
Starts the specified backend and returns its state.
Functions
Returns the backup backend configuration.
Starts the specified backend and returns its state.