Skip to content

Give client a name #1758

@tdimnet

Description

@tdimnet

Hi,

I am trying to add a name to my client when I create it.

On Python, I can do:

cache = redis.Redis(
    host='redis',
    port=6379,
    client_name='flask-app'
)

However I don't find how to do it with node-redis.
Here is how I create my client:

const client = createClient({
    socket: {
        host: 'redis',
        port: 6379
    }
})

I looked at the types definition inside the package but I haven't find something yet.
Should I add it elsewhere?

Thank you,
Tom.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions