The byte version of pipeline.getrange should returns byte[] instead of Long. TESTED: export TEST=PipeliningTest make test
214 lines
6.1 KiB
Java
214 lines
6.1 KiB
Java
package redis.clients.jedis;
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Set;
|
|
|
|
/**
|
|
* @author guy
|
|
*/
|
|
public interface BinaryRedisPipeline {
|
|
Response<Long> append(byte[] key, byte[] value);
|
|
|
|
Response<List<byte[]>> blpop(byte[] arg);
|
|
|
|
Response<List<byte[]>> brpop(byte[] arg);
|
|
|
|
Response<Long> decr(byte[] key);
|
|
|
|
Response<Long> decrBy(byte[] key, long integer);
|
|
|
|
Response<Long> del(byte[] keys);
|
|
|
|
Response<byte[]> echo(byte[] string);
|
|
|
|
Response<Boolean> exists(byte[] key);
|
|
|
|
Response<Long> expire(byte[] key, int seconds);
|
|
|
|
Response<Long> expireAt(byte[] key, long unixTime);
|
|
|
|
Response<byte[]> get(byte[] key);
|
|
|
|
Response<Boolean> getbit(byte[] key, long offset);
|
|
|
|
Response<byte[]> getSet(byte[] key, byte[] value);
|
|
|
|
Response<byte[]> getrange(byte[] key, long startOffset, long endOffset);
|
|
|
|
Response<Long> hdel(byte[] key, byte[]... field);
|
|
|
|
Response<Boolean> hexists(byte[] key, byte[] field);
|
|
|
|
Response<byte[]> hget(byte[] key, byte[] field);
|
|
|
|
Response<Map<byte[], byte[]>> hgetAll(byte[] key);
|
|
|
|
Response<Long> hincrBy(byte[] key, byte[] field, long value);
|
|
|
|
Response<Set<byte[]>> hkeys(byte[] key);
|
|
|
|
Response<Long> hlen(byte[] key);
|
|
|
|
Response<List<byte[]>> hmget(byte[] key, byte[]... fields);
|
|
|
|
Response<String> hmset(byte[] key, Map<byte[], byte[]> hash);
|
|
|
|
Response<Long> hset(byte[] key, byte[] field, byte[] value);
|
|
|
|
Response<Long> hsetnx(byte[] key, byte[] field, byte[] value);
|
|
|
|
Response<List<byte[]>> hvals(byte[] key);
|
|
|
|
Response<Long> incr(byte[] key);
|
|
|
|
Response<Long> incrBy(byte[] key, long integer);
|
|
|
|
Response<byte[]> lindex(byte[] key, long index);
|
|
|
|
Response<Long> linsert(byte[] key, BinaryClient.LIST_POSITION where,
|
|
byte[] pivot, byte[] value);
|
|
|
|
Response<Long> llen(byte[] key);
|
|
|
|
Response<byte[]> lpop(byte[] key);
|
|
|
|
Response<Long> lpush(byte[] key, byte[]... string);
|
|
|
|
Response<Long> lpushx(byte[] key, byte[]... bytes);
|
|
|
|
Response<List<byte[]>> lrange(byte[] key, long start, long end);
|
|
|
|
Response<Long> lrem(byte[] key, long count, byte[] value);
|
|
|
|
Response<String> lset(byte[] key, long index, byte[] value);
|
|
|
|
Response<String> ltrim(byte[] key, long start, long end);
|
|
|
|
Response<Long> move(byte[] key, int dbIndex);
|
|
|
|
Response<Long> persist(byte[] key);
|
|
|
|
Response<byte[]> rpop(byte[] key);
|
|
|
|
Response<Long> rpush(byte[] key, byte[]... string);
|
|
|
|
Response<Long> rpushx(byte[] key, byte[]... string);
|
|
|
|
Response<Long> sadd(byte[] key, byte[]... member);
|
|
|
|
Response<Long> scard(byte[] key);
|
|
|
|
Response<String> set(byte[] key, byte[] value);
|
|
|
|
Response<Boolean> setbit(byte[] key, long offset, byte[] value);
|
|
|
|
Response<Long> setrange(byte[] key, long offset, byte[] value);
|
|
|
|
Response<String> setex(byte[] key, int seconds, byte[] value);
|
|
|
|
Response<Long> setnx(byte[] key, byte[] value);
|
|
|
|
Response<Long> setrange(String key, long offset, String value);
|
|
|
|
Response<Set<byte[]>> smembers(byte[] key);
|
|
|
|
Response<Boolean> sismember(byte[] key, byte[] member);
|
|
|
|
Response<List<byte[]>> sort(byte[] key);
|
|
|
|
Response<List<byte[]>> sort(byte[] key, SortingParams sortingParameters);
|
|
|
|
Response<byte[]> spop(byte[] key);
|
|
|
|
Response<byte[]> srandmember(byte[] key);
|
|
|
|
Response<Long> srem(byte[] key, byte[]... member);
|
|
|
|
Response<Long> strlen(byte[] key);
|
|
|
|
Response<String> substr(byte[] key, int start, int end);
|
|
|
|
Response<Long> ttl(byte[] key);
|
|
|
|
Response<String> type(byte[] key);
|
|
|
|
Response<Long> zadd(byte[] key, double score, byte[] member);
|
|
|
|
Response<Long> zcard(byte[] key);
|
|
|
|
Response<Long> zcount(byte[] key, double min, double max);
|
|
|
|
Response<Double> zincrby(byte[] key, double score, byte[] member);
|
|
|
|
Response<Set<byte[]>> zrange(byte[] key, long start, long end);
|
|
|
|
Response<Set<byte[]>> zrangeByScore(byte[] key, double min, double max);
|
|
|
|
Response<Set<byte[]>> zrangeByScore(byte[] key, byte[] min, byte[] max);
|
|
|
|
Response<Set<byte[]>> zrangeByScore(byte[] key, double min, double max,
|
|
int offset, int count);
|
|
|
|
Response<Set<byte[]>> zrangeByScore(byte[] key, byte[] min, byte[] max,
|
|
int offset, int count);
|
|
|
|
Response<Set<Tuple>> zrangeByScoreWithScores(byte[] key, double min,
|
|
double max);
|
|
|
|
Response<Set<Tuple>> zrangeByScoreWithScores(byte[] key, byte[] min,
|
|
byte[] max);
|
|
|
|
Response<Set<Tuple>> zrangeByScoreWithScores(byte[] key, double min,
|
|
double max, int offset, int count);
|
|
|
|
Response<Set<Tuple>> zrangeByScoreWithScores(byte[] key, byte[] min,
|
|
byte[] max, int offset, int count);
|
|
|
|
Response<Set<byte[]>> zrevrangeByScore(byte[] key, double max, double min);
|
|
|
|
Response<Set<byte[]>> zrevrangeByScore(byte[] key, byte[] max, byte[] min);
|
|
|
|
Response<Set<byte[]>> zrevrangeByScore(byte[] key, double max, double min,
|
|
int offset, int count);
|
|
|
|
Response<Set<byte[]>> zrevrangeByScore(byte[] key, byte[] max, byte[] min,
|
|
int offset, int count);
|
|
|
|
Response<Set<Tuple>> zrevrangeByScoreWithScores(byte[] key, double max,
|
|
double min);
|
|
|
|
Response<Set<Tuple>> zrevrangeByScoreWithScores(byte[] key, byte[] max,
|
|
byte[] min);
|
|
|
|
Response<Set<Tuple>> zrevrangeByScoreWithScores(byte[] key, double max,
|
|
double min, int offset, int count);
|
|
|
|
Response<Set<Tuple>> zrevrangeByScoreWithScores(byte[] key, byte[] max,
|
|
byte[] min, int offset, int count);
|
|
|
|
Response<Set<Tuple>> zrangeWithScores(byte[] key, long start, long end);
|
|
|
|
Response<Long> zrank(byte[] key, byte[] member);
|
|
|
|
Response<Long> zrem(byte[] key, byte[]... member);
|
|
|
|
Response<Long> zremrangeByRank(byte[] key, long start, long end);
|
|
|
|
Response<Long> zremrangeByScore(byte[] key, double start, double end);
|
|
|
|
Response<Long> zremrangeByScore(byte[] key, byte[] start, byte[] end);
|
|
|
|
Response<Set<byte[]>> zrevrange(byte[] key, long start, long end);
|
|
|
|
Response<Set<Tuple>> zrevrangeWithScores(byte[] key, long start, long end);
|
|
|
|
Response<Long> zrevrank(byte[] key, byte[] member);
|
|
|
|
Response<Double> zscore(byte[] key, byte[] member);
|
|
|
|
Response<Long> bitcount(byte[] key);
|
|
|
|
Response<Long> bitcount(byte[] key, long start, long end);
|
|
}
|