-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Support TairHash commands #2743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
36c612b
to
3b58549
Compare
|
||
public interface TairHashCommands { | ||
|
||
long exhset(String key, String field, String value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add javadoc for redis module
import redis.clients.jedis.tairhash.ExhincrByParams; | ||
import redis.clients.jedis.tairhash.ExhsetParams; | ||
|
||
import static org.junit.Assert.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not use .*
when import class
Co-authored-by: 小令童鞋 <lingzhaohui@zeekling.cn>
@yangbodong22011 Hey, That‘s a great support 👍 . But Jedis seems to be mainly supporting the redis |
@dengliming I asked and got neither positive nor negative response. |
Apparently, the current plan is to support Redis Stack commands in Jedis. And, TairHash is not part of RS. |
This PR supports the commands of TairHash (A redis module, similar to redis hash, but you can set expiration and version for field).
Hash that supports field expiration has always been needed by Redis users. There have been many discussions on Redis Google Groups(this) and GitHub (redis/redis#6620, redis/redis#1042, redis/redis#167).
Jedis4 already supports
RediSearch
andRedisJSON
, hope more Modules can be supported.Any comments or comments are welcome, thanks.