All Downloads are FREE. Search and download functionalities are using the official Maven repository.

redis.clients.jedis.commands.HashCommands Maven / Gradle / Ivy

There is a newer version: 5.2.0
Show 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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy