function getInstanceParameters(client = {}) {
  const opts = client?.connection_options

  return new DatastoreParameters({
    host: opts.host || 'localhost',
    port_path_or_id: opts.path || opts.port || '6379',
    database_name: client.selected_db || opts.db || 0
  })
}
Captures the necessary datastore parameters from redis client

@param {object} client instance of redis client
@returns {object} datastore parameters