Skip to content

Passing only a URL to the redis instance is not supported #40

@zuck

Description

@zuck

🐛 Bug Report

Currenlty, passing only a URL to the Redis server is not supported by fastify-redis but it's supported by ioredis and other Node-based Redis clients, e.g.:

var urlRedis = new Redis('redis://user:password@redis-service.com:6379/')

To Reproduce

fastify.regster(require('fastify-redis'), 'redis://user:password@redis-service.com:6379/')

Expected behavior

A working connection to the Redis server.

An error is generated instead, saying that Cannot read property 'options' of undefined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions