fastify-ioredis
Fastify ioredis connection plugin, with this you can share the same Redis connection in every part of your server.
Under the hood the ioredis client is used, the options that you pass to register
will be passed to the Redis client.
Install
npm i fastify-ioredis --save
Usage
Add it to you project with register
and you are done!
You can access the Redis client via fastify.redis.client
.
const fastify = fastify fastify
License
Licensed under MIT.