Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

341
Views
No se puede configurar Redis en un proyecto de Node.js

cuando usaba client.set('hi', 'there') , Uncaught ClientClosedError: The client is closed redis , así que tuve que usar:

client.connect()

Funcionó, pero luego recibí una promesa sin resolver, así que tuve que usar await :

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

Luego funcionó, pero ahora cuando estoy usando client.hset('german', 'red', 'rot') , obtengo:

Uncaught TypeError: client.hset is not a function

Estoy siguiendo un tutorial que no menciona el uso de client.connect() ni await al usar client.set('hi', 'there')

No estoy seguro si instalé la versión incorrecta de Redis. Lo instalé usando yarn porque tenía problemas con npm.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Resuelto. Estaba usando diferentes versiones de redis.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!