Interface RedisCommands

  • All Known Implementing Classes:
    RedisCommandsAdapterJedis, RedisCommandsAdapterJedisCluster

    public interface RedisCommands
    This interface represents Jedis methods exhaustively which are used on storm-redis.

    This is a workaround since Jedis and JedisCluster doesn't implement same interface for binary type of methods, and unify binary methods and string methods into one interface.

    • Method Detail

      • exists

        Boolean exists​(byte[] key)
      • exists

        boolean exists​(String key)
      • del

        Long del​(byte[] key)
      • rename

        String rename​(byte[] oldkey,
                      byte[] newkey)
      • hget

        byte[] hget​(byte[] key,
                    byte[] field)
      • hgetAll

        Map<byte[],​byte[]> hgetAll​(byte[] key)
      • hmset

        String hmset​(byte[] key,
                     Map<byte[],​byte[]> fieldValues)
      • hdel

        Long hdel​(byte[] key,
                  byte[]... fields)
      • hscan

        redis.clients.jedis.resps.ScanResult<Map.Entry<byte[],​byte[]>> hscan​(byte[] key,
                                                                                   byte[] cursor,
                                                                                   redis.clients.jedis.params.ScanParams params)