Skip to content
New issue

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

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

Already on GitHub? # to your account

Having issues using ioredis and typescript #229

Open
Migueld37 opened this issue Dec 4, 2020 · 0 comments
Open

Having issues using ioredis and typescript #229

Migueld37 opened this issue Dec 4, 2020 · 0 comments

Comments

@Migueld37
Copy link

Hey everyone,
I'm having some trouble using ioredis and typescript. Initializing the cache like below will give me the following type error:

import Redis from 'ioredis';

export const cache = apicache.options({
  redisClient: new Redis(process.env.REDIS_URL),
}).middleware;

Type 'Redis' is missing the following properties from type 'RedisClient': connected, command_queue_length....

Any thoughts on what I'm doing wrong? Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant