Skip to content

redis 4.2 TypeError: redisClient.unref is not a function #2185

Closed
@rafipiccolo

Description

@rafipiccolo

client unref function has disapeared ?
is it intentional ?
it was useful and easy to use it : it's like saying, when there is no more work => shutdown server

import { createClient } from "redis"

let redisClient = createClient({
    url: 'redis://localhost:6379',
    legacyMode: true
})
await redisClient.connect()

redisClient.unref();
// throws TypeError: redisClient.unref is not a function

Environment:

  • Node.js Version: 18.5
  • Redis Server Version: 7.0.2
  • Node Redis Version: 4.2
  • Platform: Ubuntu 20.04.4

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