Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

343
Visualizações
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 Respostas
Responde à pergunta

0

Solved. I was using different versions of redis

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda