MongoDB Cache Layer (Optional)
Config
Set environment UNDB_CACHE_STORAGE_PROVIDER
to mongo
and other config to enable cache provider mongo
Environment Variables
Variable | Comments | If absent |
---|---|---|
UNDB_CACHE_STORAGE_PROVIDER | mongo | require |
UNDB_CACHE_STORAGE_MONGO_CONNECTION_STRING | mongodb connection string | example mongodb://localhost:27017 |
UNDB_CACHE_STORAGE_MONGO_DATABASE_NAME | mongodb cache database | default undb_cache |
UNDB_CACHE_STORAGE_MONGO_COLLECTION_NAME | mongodb cache collection name | default undb_cache |