redis.clients.jedis.commands.HashBinaryCommands 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 java.util.Map;
import java.util.Set;
import redis.clients.jedis.params.ScanParams;
import redis.clients.jedis.resps.ScanResult;
public interface HashBinaryCommands {
long hset(byte[] key, byte[] field, byte[] value);
long hset(byte[] key, Map hash);
byte[] hget(byte[] key, byte[] field);
long hsetnx(byte[] key, byte[] field, byte[] value);
String hmset(byte[] key, Map hash);
List hmget(byte[] key, byte[]... fields);
long hincrBy(byte[] key, byte[] field, long value);
double hincrByFloat(byte[] key, byte[] field, double value);
boolean hexists(byte[] key, byte[] field);
long hdel(byte[] key, byte[]... field);
long hlen(byte[] key);
Set hkeys(byte[] key);
List hvals(byte[] key);
Map hgetAll(byte[] key);
byte[] hrandfield(byte[] key);
List hrandfield(byte[] key, long count);
List> hrandfieldWithValues(byte[] key, long count);
default ScanResult> hscan(byte[] key, byte[] cursor) {
return hscan(key, cursor, new ScanParams());
}
ScanResult> hscan(byte[] key, byte[] cursor, ScanParams params);
long hstrlen(byte[] key, byte[] field);
}