This PR passes the options argument through to node_redis's duplicate call. In this case, I need to pass {detect_buffers: true} on the cloned connection to make proper use of the DUMP/RESTORE Redis commands.
This is something that would not be necessary if we migrated Hydra to ioredis, which has a more elegant API for handling buffers.
We should probably also add the callback argument, to allow maximum flexibility, which if present uses a non-blocking version of the call.
This PR passes the
options
argument through to node_redis'sduplicate
call. In this case, I need to pass{detect_buffers: true}
on the cloned connection to make proper use of the DUMP/RESTORE Redis commands.This is something that would not be necessary if we migrated Hydra to
ioredis
, which has a more elegant API for handling buffers.We should probably also add the
callback
argument, to allow maximum flexibility, which if present uses a non-blocking version of the call.