Class ReactiveTransactionalStringCommandsImpl<K,​V>

    • Method Detail

      • decrby

        public io.smallrye.mutiny.Uni<Void> decrby​(K key,
                                                   long amount)
        Description copied from interface: ReactiveTransactionalStringCommands
        Execute the command DECRBY. Summary: Decrement the integer value of a key by the given number Group: string Requires Redis 1.0.0
        Specified by:
        decrby in interface ReactiveTransactionalStringCommands<K,​V>
        Specified by:
        decrby in interface ReactiveTransactionalValueCommands<K,​V>
        Parameters:
        key - the key
        amount - the amount, can be negative
        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.
      • getex

        public io.smallrye.mutiny.Uni<Void> getex​(K key,
                                                  GetExArgs args)
        Description copied from interface: ReactiveTransactionalStringCommands
        Execute the command GETEX. Summary: Get the value of a key and optionally set its expiration Group: string Requires Redis 6.2.0
        Specified by:
        getex in interface ReactiveTransactionalStringCommands<K,​V>
        Parameters:
        key - the key
        args - the getex command extra-arguments
        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.
      • getex

        public io.smallrye.mutiny.Uni<Void> getex​(K key,
                                                  GetExArgs args)
        Description copied from interface: ReactiveTransactionalValueCommands
        Execute the command GETEX. Summary: Get the value of a key and optionally set its expiration Group: string Requires Redis 6.2.0
        Specified by:
        getex in interface ReactiveTransactionalValueCommands<K,​V>
        Parameters:
        key - the key
        args - the getex command extra-arguments
        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.
      • getrange

        public io.smallrye.mutiny.Uni<Void> getrange​(K key,
                                                     long start,
                                                     long end)
        Description copied from interface: ReactiveTransactionalStringCommands
        Execute the command GETRANGE. Summary: Get a substring of the string stored at a key Group: string Requires Redis 2.4.0
        Specified by:
        getrange in interface ReactiveTransactionalStringCommands<K,​V>
        Specified by:
        getrange in interface ReactiveTransactionalValueCommands<K,​V>
        Parameters:
        key - the key
        start - the start offset
        end - the end offset
        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.
      • incrby

        public io.smallrye.mutiny.Uni<Void> incrby​(K key,
                                                   long amount)
        Description copied from interface: ReactiveTransactionalStringCommands
        Execute the command INCRBY. Summary: Increment the integer value of a key by the given amount Group: string Requires Redis 1.0.0
        Specified by:
        incrby in interface ReactiveTransactionalStringCommands<K,​V>
        Specified by:
        incrby in interface ReactiveTransactionalValueCommands<K,​V>
        Parameters:
        key - the key
        amount - the amount, can be negative
        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.
      • msetnx

        public io.smallrye.mutiny.Uni<Void> msetnx​(Map<K,​V> map)
        Description copied from interface: ReactiveTransactionalStringCommands
        Execute the command MSETNX. Summary: Set multiple keys to multiple values, only if none of the keys exist Group: string Requires Redis 1.0.1
        Specified by:
        msetnx in interface ReactiveTransactionalStringCommands<K,​V>
        Specified by:
        msetnx in interface ReactiveTransactionalValueCommands<K,​V>
        Parameters:
        map - the key/value map containing the items to store
        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.
      • psetex

        public io.smallrye.mutiny.Uni<Void> psetex​(K key,
                                                   long milliseconds,
                                                   V value)
        Description copied from interface: ReactiveTransactionalStringCommands
        Execute the command PSETEX. Summary: Set the value and expiration in milliseconds of a key Group: string Requires Redis 2.6.0
        Specified by:
        psetex in interface ReactiveTransactionalStringCommands<K,​V>
        Specified by:
        psetex in interface ReactiveTransactionalValueCommands<K,​V>
        Parameters:
        key - the key
        milliseconds - the duration in ms
        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.
      • set

        public io.smallrye.mutiny.Uni<Void> set​(K key,
                                                V value,
                                                SetArgs setArgs)
        Description copied from interface: ReactiveTransactionalStringCommands
        Execute the command SET. Summary: Set the string value of a key Group: string Requires Redis 1.0.0
        Specified by:
        set in interface ReactiveTransactionalStringCommands<K,​V>
        Parameters:
        key - the key
        value - the value
        setArgs - the set command extra-arguments
        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.
      • set

        public io.smallrye.mutiny.Uni<Void> set​(K key,
                                                V value,
                                                SetArgs setArgs)
        Description copied from interface: ReactiveTransactionalValueCommands
        Execute the command SET. Summary: Set the string value of a key Group: string Requires Redis 1.0.0
        Specified by:
        set in interface ReactiveTransactionalValueCommands<K,​V>
        Parameters:
        key - the key
        value - the value
        setArgs - the set command extra-arguments
        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.
      • setGet

        public io.smallrye.mutiny.Uni<Void> setGet​(K key,
                                                   V value)
        Description copied from interface: ReactiveTransactionalStringCommands
        Execute the command SET. Summary: Set the string value of a key, and return the previous value Group: string Requires Redis 1.0.0
        Specified by:
        setGet in interface ReactiveTransactionalStringCommands<K,​V>
        Specified by:
        setGet in interface ReactiveTransactionalValueCommands<K,​V>
        Parameters:
        key - the key
        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.
      • setGet

        public io.smallrye.mutiny.Uni<Void> setGet​(K key,
                                                   V value,
                                                   SetArgs setArgs)
        Description copied from interface: ReactiveTransactionalStringCommands
        Execute the command SET. Summary: Set the string value of a key, and return the previous value Group: string Requires Redis 1.0.0
        Specified by:
        setGet in interface ReactiveTransactionalStringCommands<K,​V>
        Parameters:
        key - the key
        value - the value
        setArgs - the set command extra-arguments
        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.
      • setGet

        public io.smallrye.mutiny.Uni<Void> setGet​(K key,
                                                   V value,
                                                   SetArgs setArgs)
        Description copied from interface: ReactiveTransactionalValueCommands
        Execute the command SET. Summary: Set the string value of a key, and return the previous value Group: string Requires Redis 1.0.0
        Specified by:
        setGet in interface ReactiveTransactionalValueCommands<K,​V>
        Parameters:
        key - the key
        value - the value
        setArgs - the set command extra-arguments
        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.