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.

Add a common interface for JedisCommands and JedisClusterCommands

See original GitHub issue

Hey guys, i’m having some trouble migrating this project: https://github.com/jlinn/quartz-redis-jobstore to jedis 3.0.x

So in the previous (2.9.x) version the JedisCluster was implementing JedisCommands and in 3.0.x it now implements a different interface JedisClusterCommands which has most of the JedisCommands methods in. Can we have all the common methods extracted to a common interface to both JedisClusterCommands and JedisCommands?

Something like:

           TOP_INTF
     /               \
JedisCommands    JedisClusterCommands

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:6

github_iconTop GitHub Comments

2reactions
marcosnilscommented, Jan 11, 2019

I don’t see why we cannot unify interfaces to avoid duplication. WDYT @gkorland / @sazzad16 ?

0reactions
sazzad16commented, Dec 8, 2021

Resolved by #2693

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add a common interface for JedisCommands and ... - GitHub
Hey guys, i'm having some trouble migrating this project: https://github.com/jlinn/quartz-redis-jobstore to jedis 3.0.x So in the previous ...
Read more >
Common interface for Jedis and JedisCluster - Stack Overflow
1 Answer 1 · JedisCluster implements JedisClusterCommands and not JedisCommands. · public class JedisCluster extends BinaryJedisCluster implements JedisCommands, ...
Read more >
Index (Jedis 3.1.0 API) - javadoc.io
Asynchronously save the DB on disk. bgsave() - Method in interface redis.clients.jedis.commands.BasicCommands. Save the DB in background. bgsave() ...
Read more >
Deeply analyze the characteristics and principles of Redis ...
In BinaryJedis class, there is a Client class object that interfaces with Redis. Jedis can read and write Redis through the Client object...
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