Class ReactiveTransactionalHashCommandsImpl<K,​F,​V>

    • Method Detail

      • hdel

        public io.smallrye.mutiny.Uni<Void> hdel​(K key,
                                                 F... fields)
        Description copied from interface: ReactiveTransactionalHashCommands
        Execute the command HDEL. Summary: Delete one or more hash fields Group: hash Requires Redis 2.0.0
        Specified by:
        hdel in interface ReactiveTransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • hexists

        public io.smallrye.mutiny.Uni<Void> hexists​(K key,
                                                    F field)
        Description copied from interface: ReactiveTransactionalHashCommands
        Execute the command HEXISTS. Summary: Determine if a hash field exists Group: hash Requires Redis 2.0.0
        Specified by:
        hexists in interface ReactiveTransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        field - the value
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • hget

        public io.smallrye.mutiny.Uni<Void> hget​(K key,
                                                 F field)
        Description copied from interface: ReactiveTransactionalHashCommands
        Execute the command HGET. Summary: Get the value of a hash field Group: hash Requires Redis 2.0.0
        Specified by:
        hget in interface ReactiveTransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        field - the value
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • hincrby

        public io.smallrye.mutiny.Uni<Void> hincrby​(K key,
                                                    F field,
                                                    long amount)
        Description copied from interface: ReactiveTransactionalHashCommands
        Execute the command HINCRBY. Summary: Increment the integer value of a hash field by the given number Group: hash Requires Redis 2.0.0
        Specified by:
        hincrby in interface ReactiveTransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        field - the value
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • hincrbyfloat

        public io.smallrye.mutiny.Uni<Void> hincrbyfloat​(K key,
                                                         F field,
                                                         double amount)
        Description copied from interface: ReactiveTransactionalHashCommands
        Execute the command HINCRBYFLOAT. Summary: Increment the float value of a hash field by the given amount Group: hash Requires Redis 2.6.0
        Specified by:
        hincrbyfloat in interface ReactiveTransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        field - the value
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • hgetall

        public io.smallrye.mutiny.Uni<Void> hgetall​(K key)
        Description copied from interface: ReactiveTransactionalHashCommands
        Execute the command HGETALL. Summary: Get all the fields and values in a hash Group: hash Requires Redis 2.0.0
        Specified by:
        hgetall in interface ReactiveTransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • hkeys

        public io.smallrye.mutiny.Uni<Void> hkeys​(K key)
        Description copied from interface: ReactiveTransactionalHashCommands
        Execute the command HKEYS. Summary: Get all the fields in a hash Group: hash Requires Redis 2.0.0
        Specified by:
        hkeys in interface ReactiveTransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • hlen

        public io.smallrye.mutiny.Uni<Void> hlen​(K key)
        Description copied from interface: ReactiveTransactionalHashCommands
        Execute the command HLEN. Summary: Get the number of fields in a hash Group: hash Requires Redis 2.0.0
        Specified by:
        hlen in interface ReactiveTransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • hmget

        public io.smallrye.mutiny.Uni<Void> hmget​(K key,
                                                  F... fields)
        Description copied from interface: ReactiveTransactionalHashCommands
        Execute the command HMGET. Summary: Get the values of all the given hash fields Group: hash Requires Redis 2.0.0
        Specified by:
        hmget in interface ReactiveTransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        fields - the fields
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • hrandfield

        public io.smallrye.mutiny.Uni<Void> hrandfield​(K key)
        Description copied from interface: ReactiveTransactionalHashCommands
        Execute the command HRANDFIELD. Summary: Get one or multiple random fields from a hash Group: hash Requires Redis 6.2.0
        Specified by:
        hrandfield in interface ReactiveTransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • hrandfield

        public io.smallrye.mutiny.Uni<Void> hrandfield​(K key,
                                                       long count)
        Description copied from interface: ReactiveTransactionalHashCommands
        Execute the command HRANDFIELD. Summary: Get one or multiple random fields from a hash Group: hash Requires Redis 6.2.0
        Specified by:
        hrandfield in interface ReactiveTransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        count - the number of random key to retrieve. If count is positive, the selected keys are distinct. If count is negative, the produced list can contain duplicated keys.
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • hrandfieldWithValues

        public io.smallrye.mutiny.Uni<Void> hrandfieldWithValues​(K key,
                                                                 long count)
        Description copied from interface: ReactiveTransactionalHashCommands
        Execute the command HRANDFIELD. Summary: Get one or multiple random fields and their associated values from a hash Group: hash Requires Redis 6.2.0
        Specified by:
        hrandfieldWithValues in interface ReactiveTransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        count - the number of random key to retrieve. If count is positive, the selected keys are distinct. If count is negative, the produced list can contain duplicated keys. These duplicates are not included in the produced Map.
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • hset

        public io.smallrye.mutiny.Uni<Void> hset​(K key,
                                                 F field,
                                                 V value)
        Description copied from interface: ReactiveTransactionalHashCommands
        Execute the command HSET. Summary: Set the string value of a hash field Group: hash Requires Redis 2.0.0
        Specified by:
        hset in interface ReactiveTransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        field - the field
        value - the value
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • hset

        public io.smallrye.mutiny.Uni<Void> hset​(K key,
                                                 Map<F,​V> map)
        Description copied from interface: ReactiveTransactionalHashCommands
        Execute the command HSET. Summary: Set the string value of a hash field Group: hash Requires Redis 2.0.0
        Specified by:
        hset in interface ReactiveTransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        map - the set of key -> value to add to the hash
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • hsetnx

        public io.smallrye.mutiny.Uni<Void> hsetnx​(K key,
                                                   F field,
                                                   V value)
        Description copied from interface: ReactiveTransactionalHashCommands
        Execute the command HSETNX. Summary: Set the value of a hash field, only if the field does not exist Group: hash Requires Redis 2.0.0
        Specified by:
        hsetnx in interface ReactiveTransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        field - the value
        value - the value
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • hstrlen

        public io.smallrye.mutiny.Uni<Void> hstrlen​(K key,
                                                    F field)
        Description copied from interface: ReactiveTransactionalHashCommands
        Execute the command HSTRLEN. Summary: Get the length of the value of a hash field Group: hash Requires Redis 3.2.0
        Specified by:
        hstrlen in interface ReactiveTransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        field - the value
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • hvals

        public io.smallrye.mutiny.Uni<Void> hvals​(K key)
        Description copied from interface: ReactiveTransactionalHashCommands
        Execute the command HVALS. Summary: Get all the values in a hash Group: hash Requires Redis 2.0.0
        Specified by:
        hvals in interface ReactiveTransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.