Skip to content
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

i want use the 'set' command like this "set(final byte[] key, final byte[] value, final byte[] expx, final int time)" #1318

Closed
fengyapeng opened this issue Jun 14, 2016 · 2 comments

Comments

@fengyapeng
Copy link

Expected behavior

I want use reids "set" command like this:
set(final byte[] key, final byte[] value, final byte[] expx, final int time)

Actual behavior

but only have this

 public void set(final byte[] key, final byte[] value, final byte[] nxxx) {
    sendCommand(Command.SET, key, value, nxxx);
  }

  public void set(final byte[] key, final byte[] value, final byte[] nxxx, final byte[] expx,
      final int time) {
    sendCommand(Command.SET, key, value, nxxx, expx, toByteArray(time));
  }

Steps to reproduce:

Redis / Jedis Configuration

normal

Jedis version:

2.8.1

Redis version:

3.0

Java version:

1.8

@marcosnils
Copy link
Contributor

Does this work for you? https://github.com/xetorthio/jedis/blob/2.8/src/main/java/redis/clients/jedis/BinaryJedis.java#L523

BTW: In Jedis master we've changed the way several commands receive there parameters. That's why you might find some methods that are missing.

@sazzad16
Copy link
Collaborator

Resolved by #1433

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

No branches or pull requests

3 participants