Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

347
Vistas
Unable to set up Redis in a Node.js project

when using client.set('hi', 'there') , I was getting Uncaught ClientClosedError: The client is closed redis , so I had to use:

client.connect()

It worked but then I was getting an unresolved promise, so I had to use await:

await client.set('hi', 'there')

It then worked, but now when I am using client.hset('german', 'red', 'rot') , I am getting:

Uncaught TypeError: client.hset is not a function

I am following a tutorial that did not mention the use of client.connect() nor await when using client.set('hi', 'there')

Not sure if I installed the wrong version of Redis. I installed it using yarn because I was having issues with npm.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Solved. I was using different versions of redis

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda