Redis Cache Layer (Optional)
Config
Set environment UNDB_CACHE_STORAGE_PROVIDER
to redis
and other config to enable cache provider redis
Environment Variables
Variable | Comments | If absent |
---|---|---|
UNDB_CACHE_STORAGE_PROVIDER | redis | require |
UNDB_CACHE_STORAGE_REDIS_HOST | redis host | require |
UNDB_CACHE_STORAGE_REDIS_PORT | redis port | require |
UNDB_CACHE_STORAGE_REDIS_PASSWORD | redis password | |
UNDB_CACHE_STORAGE_REDIS_BASE | namespace of cache key in redis | default undb_cache |
UNDB_CACHE_STORAGE_REDIS_TTL | ttl in seconds | positive int |