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

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

package redis.clients.jedis.commands;

import java.util.List;
import java.util.Map;
import java.util.Set;

import redis.clients.jedis.Response;
import redis.clients.jedis.args.ExpiryOption;
import redis.clients.jedis.params.ScanParams;
import redis.clients.jedis.resps.ScanResult;

public interface HashPipelineBinaryCommands {

  Response hset(byte[] key, byte[] field, byte[] value);

  Response hset(byte[] key, Map hash);

  Response hget(byte[] key, byte[] field);

  Response hsetnx(byte[] key, byte[] field, byte[] value);

  Response hmset(byte[] key, Map hash);

  Response> hmget(byte[] key, byte[]... fields);

  Response hincrBy(byte[] key, byte[] field, long value);

  Response hincrByFloat(byte[] key, byte[] field, double value);

  Response hexists(byte[] key, byte[] field);

  Response hdel(byte[] key, byte[]... field);

  Response hlen(byte[] key);

  Response> hkeys(byte[] key);

  Response> hvals(byte[] key);

  Response> hgetAll(byte[] key);

  Response hrandfield(byte[] key);

  Response> hrandfield(byte[] key, long count);

  Response>> hrandfieldWithValues(byte[] key, long count);

  default Response>> hscan(byte[] key, byte[] cursor) {
    return hscan(key, cursor, new ScanParams());
  }

  Response>> hscan(byte[] key, byte[] cursor, ScanParams params);

  default Response> hscanNoValues(byte[] key, byte[] cursor) {
    return hscanNoValues(key, cursor, new ScanParams());
  }

  Response> hscanNoValues(byte[] key, byte[] cursor, ScanParams params);

  Response hstrlen(byte[] key, byte[] field);

  Response> hexpire(byte[] key, long seconds, byte[]... fields);

  Response> hexpire(byte[] key, long seconds, ExpiryOption condition, byte[]... fields);

  Response> hpexpire(byte[] key, long milliseconds, byte[]... fields);

  Response> hpexpire(byte[] key, long milliseconds, ExpiryOption condition, byte[]... fields);

  Response> hexpireAt(byte[] key, long unixTimeSeconds, byte[]... fields);

  Response> hexpireAt(byte[] key, long unixTimeSeconds, ExpiryOption condition, byte[]... fields);

  Response> hpexpireAt(byte[] key, long unixTimeMillis, byte[]... fields);

  Response> hpexpireAt(byte[] key, long unixTimeMillis, ExpiryOption condition, byte[]... fields);

  Response> hexpireTime(byte[] key, byte[]... fields);

  Response> hpexpireTime(byte[] key, byte[]... fields);

  Response> httl(byte[] key, byte[]... fields);

  Response> hpttl(byte[] key, byte[]... fields);

  Response> hpersist(byte[] key, byte[]... fields);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy