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

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

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);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy