wotermelon/fastify-ioredisjs

Contribute to `fastify-redis`?

Closed this issue · 1 comments

I think it would be fantastic if you contributed a PR to https://github.com/fastify/fastify-redis that allows the user to decide which client to use within a single module. For example:

fastify.register(require('fastify-redis'), {ioredis: true})

cc: @delvedor

Yeah, it would be awesome.
I think that the api should be something like the following:

fastify.register(
  require('fastify-redis'),
  { driver: require('ioredis') }
)