Skip to content

Conversation

@mcollina
Copy link
Member

This PR aligns the behavior of fastify-redis with the others database driver. If a client is passed in, then it will not be closed. This speeds up tests significantly because we won’t have to recreate that many connections.

Copy link

@cemremengu cemremengu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a nit

README.md Outdated
You may also supply an existing *Redis* client instance by passing an options
object with the `client` property set to the instance.
object with the `client` property set to the instance. In this case,
the client is not automatically close when the Fastify instance is

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

automatically closed

Copy link
Member

@delvedor delvedor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mcollina mcollina merged commit 8bcb212 into master Dec 29, 2018
@Fdawgs Fdawgs deleted the avoid-quit-for-passed-instance branch November 29, 2021 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants