redis.clients.jedis.commands.StringBinaryCommands Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jedis_preview Show documentation
Show all versions of jedis_preview Show documentation
Jedis is a blazingly small and sane Redis java client.
The newest version!
package redis.clients.jedis.commands;
import java.util.List;
import redis.clients.jedis.params.GetExParams;
import redis.clients.jedis.params.SetParams;
import redis.clients.jedis.params.LCSParams;
import redis.clients.jedis.resps.LCSMatchResult;
public interface StringBinaryCommands extends BitBinaryCommands {
String set(byte[] key, byte[] value);
String set(byte[] key, byte[] value, SetParams params);
byte[] get(byte[] key);
byte[] setGet(byte[] key, byte[] value);
byte[] setGet(byte[] key, byte[] value, SetParams params);
byte[] getDel(byte[] key);
byte[] getEx(byte[] key, GetExParams params);
long setrange(byte[] key, long offset, byte[] value);
byte[] getrange(byte[] key, long startOffset, long endOffset);
byte[] getSet(byte[] key, byte[] value);
long setnx(byte[] key, byte[] value);
String setex(byte[] key, long seconds, byte[] value);
String psetex(byte[] key, long milliseconds, byte[] value);
List mget(byte[]... keys);
String mset(byte[]... keysvalues);
long msetnx(byte[]... keysvalues);
long incr(byte[] key);
long incrBy(byte[] key, long increment);
double incrByFloat(byte[] key, double increment);
long decr(byte[] key);
long decrBy(byte[] key, long decrement);
long append(byte[] key, byte[] value);
byte[] substr(byte[] key, int start, int end);
long strlen(byte[] key);
/**
* Calculate the longest common subsequence of keyA and keyB.
* @param keyA
* @param keyB
* @param params
* @return According to LCSParams to decide to return content to fill LCSMatchResult.
*/
LCSMatchResult lcs(byte[] keyA, byte[] keyB, LCSParams params);
}