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

293
Views
conecte redis (redislab) con el nodo (mecanografiado) usando handy-redis

Estoy tratando de conectar Redis (redislab) con la aplicación Node usando handy-redis npm.

 import { createNodeRedisClient } from 'handy-redis'; (async function() { const client = createNodeRedisClient({ host: 'redis-<link>.ap-south-1-1.ec2.cloud.redislabs.com', port: <port>, password: <password>, }); })();

Pero Typescript devuelve este error:

 Argument of type '{ host: string; port: string; password: string; }' is not assignable to parameter of type 'RedisClient'. Object literal may only specify known properties, and 'host' does not exist in type 'RedisClient'

Aunque Typescript devuelve un error, pero la aplicación funciona correctamente.
He intentado durante mucho tiempo resolver esto, pero no pude tener éxito.
Por favor, alguien me sugiere cómo usar correctamente handy-redis con redislab para deshacerse de este error.

over 4 years ago · Santiago Trujillo
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!