This package adds redis support using IORedis to any micro-core application as a multi tenant adaptor.
When a customer connects to a micro-core application, the required app_id is passed into the adaptor initializer and used as the context for any redis records managed using the adaptor.
Install the @knetik/micro-redis
package
yarn add @knetik/micro-redis
Add the Adaptor to your config/environments/{env}.json
"ADAPTORS": [
"@knetik/micro-redis"
]
Add the REDIS_HOST
param as well
"REDIS_HOST": "127.0.0.1"
More info is available in the DOCS