Class RedisAbstractExecutor

    • Constructor Detail

      • RedisAbstractExecutor

        public RedisAbstractExecutor()
    • Method Detail

      • scriptLoad

        public String scriptLoad​(String script)
                          throws redis.clients.jedis.exceptions.JedisException
        Description copied from interface: RedisExecutor
        Loads the script into Redis.
        Specified by:
        scriptLoad in interface RedisExecutor
        Returns:
        the script SHA1
        Throws:
        redis.clients.jedis.exceptions.JedisException
      • evalsha

        public Object evalsha​(String sha1,
                              List<String> keys,
                              List<String> args)
                       throws redis.clients.jedis.exceptions.JedisException
        Description copied from interface: RedisExecutor
        Evaluates the script of the given SHA1 with the given keys and arguments.

        Can reload the script if the Redis instance restarted and the script isn't available anymore.

        Specified by:
        evalsha in interface RedisExecutor
        Parameters:
        sha1 - the script SHA1
        keys - the keys
        args - the arguments
        Returns:
        the SHA1
        Throws:
        redis.clients.jedis.exceptions.JedisException
      • evalsha

        public Object evalsha​(byte[] sha1,
                              List<byte[]> keys,
                              List<byte[]> args)
                       throws redis.clients.jedis.exceptions.JedisException
        Description copied from interface: RedisExecutor
        Evaluates the script of the given SHA1 with the given keys and arguments.

        Can reload the script if the Redis instance restarted and the script isn't available anymore.

        Specified by:
        evalsha in interface RedisExecutor
        Parameters:
        sha1 - the script SHA1
        keys - the keys
        args - the arguments
        Returns:
        the SHA1
        Throws:
        redis.clients.jedis.exceptions.JedisException