Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rafipiccolo opened this issue Jul 8, 2022 · 0 comments
Closed

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

rafipiccolo opened this issue Jul 8, 2022 · 0 comments
Labels

Comments

@rafipiccolo
Copy link

rafipiccolo commented Jul 8, 2022

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants