refactor(config): add EnumResolver for cache-backed enum resolution and extend DockerSecretsResolver with caching
- Introduce `EnumResolver` to centralize and cache enum value conversions. - Enhance `DockerSecretsResolver` with result caching to avoid redundant file reads and improve performance. - Update `Environment` to integrate `EnumResolver` for enriched enum resolution support and improved maintainability. - Adjust unit tests to validate caching mechanisms and error handling improvements.
This commit is contained in:
@@ -37,7 +37,6 @@ services:
|
||||
# Redis
|
||||
- REDIS_HOST=staging-redis
|
||||
- REDIS_PORT=6379
|
||||
- REDIS_PASSWORD=${REDIS_PASSWORD}
|
||||
# Cache
|
||||
- CACHE_DRIVER=redis
|
||||
- CACHE_PREFIX=${CACHE_PREFIX:-staging}
|
||||
@@ -365,7 +364,6 @@ services:
|
||||
# Redis
|
||||
- REDIS_HOST=staging-redis
|
||||
- REDIS_PORT=6379
|
||||
- REDIS_PASSWORD=${REDIS_PASSWORD}
|
||||
- REDIS_PASSWORD_FILE=/run/secrets/redis_password
|
||||
# Queue
|
||||
- QUEUE_DRIVER=redis
|
||||
@@ -421,7 +419,6 @@ services:
|
||||
# Redis
|
||||
- REDIS_HOST=staging-redis
|
||||
- REDIS_PORT=6379
|
||||
- REDIS_PASSWORD=${REDIS_PASSWORD}
|
||||
- REDIS_PASSWORD_FILE=/run/secrets/redis_password
|
||||
volumes:
|
||||
- staging-code:/var/www/html
|
||||
|
||||
Reference in New Issue
Block a user