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