glimr_redis/redis
Redis Cache Entry Point
Provides the main entry point for starting Redis cache pools. Use this module to initialize Redis cache stores defined in your config_cache.gleam.
Values
pub fn start(
name: String,
stores: List(driver.CacheStore),
) -> pool.Pool
Starts a Redis cache pool for the named store. Looks up the store configuration by name from the provided list and initializes a connection pool.
Example
import glimr_redis/redis
import config/config_cache
let pool = redis.start("main", config_cache.stores())