castlecraft_engineer.caching.cache
¶
castlecraft_engineer.caching.cache
¶
get_redis_cache_async_connection(redis_uri=None, is_sentinel_enabled=None, sentinels_uri=None, sentinel_username=None, sentinel_password=None, sentinel_master_username=None, sentinel_master_password=None, sentinel_master_service=None)
async
¶
Gets an asynchronous Redis connection, allowing programmatic overrides. Falls back to environment variables if parameters are not provided.
Source code in src/castlecraft_engineer/caching/cache.py
get_redis_cache_connection(redis_uri=None, is_sentinel_enabled=None, sentinels_uri=None, sentinel_username=None, sentinel_password=None, sentinel_master_username=None, sentinel_master_password=None, sentinel_master_service=None)
¶
Gets a synchronous Redis connection, allowing programmatic overrides. Falls back to environment variables if parameters are not provided.