Skip to content

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yangbodong22011
Copy link
Contributor

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 and RedisJSON, hope more Modules can be supported.

Any comments or comments are welcome, thanks.


public interface TairHashCommands {

long exhset(String key, String field, String value);
Copy link
Contributor

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.*;
Copy link
Contributor

@zeekling zeekling Jan 1, 2022

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>
@dengliming
Copy link
Contributor

@yangbodong22011 Hey, That‘s a great support 👍 . But Jedis seems to be mainly supporting the redis official Module for now. WDYT? @sazzad16

@sazzad16
Copy link
Contributor

sazzad16 commented Feb 6, 2022

@dengliming I asked and got neither positive nor negative response.

@sazzad16
Copy link
Contributor

Apparently, the current plan is to support Redis Stack commands in Jedis. And, TairHash is not part of RS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants