question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Redis.Cluster.get and .set Properties do not exist on type 'Cluster'

See original GitHub issue

When trying to call get or set on a cluster using “@types/ioredis”: “^4.0.9” and typescript there is no definition for Cluster.set or .get: image

as per docs it says you can do this: https://github.com/luin/ioredis#cluster

I assume the type files are incorrect in @types/ioredis, I can’t find an easy way to fix them. (would rather open issue here than in the behemoth that is the @types repo)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

4reactions
thetutlagecommented, Jun 25, 2019

Hahaha. I have spent hours reading, why the normal Redis methods are missing on the Cluster, I though, this maybe a limitation from redis itself. Finally landed here.

So for anyone else. All the commands from the normal Redis client are fully supported by Redis cluster too, it’s just missing in types.

4reactions
joshrpcommented, Apr 28, 2019

Good work stale bot. This is still broken and still and an issue. Is it possible to just publish the generated definitions instead of the global ones just being broken and out of date?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Property does not exist on type when it exists
I have this class import ...
Read more >
SET
GET -- Return the old string stored at key, or nil if key did not exist. An error is returned and SET aborted...
Read more >
ioredis
There are 4694 other projects in the npm registry using ioredis. ... ioredis supports the node.js callback style redis.get("mykey", (err, ...
Read more >
Redis Extension Reference Guide
Redis is an in-memory data store used as a database, cache, streaming engine, ... configure the client type to cluster and configure the...
Read more >
Spring Data Redis
The best way to get acquainted with these solutions is to read their documentation and follow their examples. It usually does not take...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found