Class ReactiveTransactionalKeyCommandsImpl<K>

    • Method Detail

      • copy

        public io.smallrye.mutiny.Uni<Void> copy​(K source,
                                                 K destination)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command COPY. Summary: Copy a key Group: generic Requires Redis 6.2.0
        Specified by:
        copy in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        source - the key
        destination - 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.
      • copy

        public io.smallrye.mutiny.Uni<Void> copy​(K source,
                                                 K destination,
                                                 CopyArgs copyArgs)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command COPY. Summary: Copy a key Group: generic Requires Redis 6.2.0
        Specified by:
        copy in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        source - the key
        destination - the key
        copyArgs - the additional 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.
      • del

        public io.smallrye.mutiny.Uni<Void> del​(K... keys)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command DEL. Summary: Delete one or multiple keys Group: generic Requires Redis 1.0.0
        Specified by:
        del in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        keys - the 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.
      • dump

        public io.smallrye.mutiny.Uni<Void> dump​(K key)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command DUMP. Summary: Return a serialized version of the value stored at the specified key. Group: generic Requires Redis 2.6.0
        Specified by:
        dump in interface ReactiveTransactionalKeyCommands<K>
        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.
      • exists

        public io.smallrye.mutiny.Uni<Void> exists​(K key)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command EXISTS. Summary: Determine if a key exists Group: generic Requires Redis 1.0.0
        Specified by:
        exists in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        key - the key to check
        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.
      • exists

        public io.smallrye.mutiny.Uni<Void> exists​(K... keys)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command EXISTS. Summary: Determine if a key exists Group: generic Requires Redis 1.0.0
        Specified by:
        exists in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        keys - the keys to check
        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.
      • expire

        public io.smallrye.mutiny.Uni<Void> expire​(K key,
                                                   long seconds,
                                                   ExpireArgs expireArgs)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command EXPIRE. Summary: Set a key's time to live in seconds Group: generic Requires Redis 1.0.0
        Specified by:
        expire in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        key - the key
        seconds - the new TTL
        expireArgs - the EXPIRE 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.
      • expire

        public io.smallrye.mutiny.Uni<Void> expire​(K key,
                                                   Duration duration,
                                                   ExpireArgs expireArgs)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command EXPIRE. Summary: Set a key's time to live in seconds Group: generic Requires Redis 1.0.0
        Specified by:
        expire in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        key - the key
        duration - the new TTL
        expireArgs - the EXPIRE 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.
      • expire

        public io.smallrye.mutiny.Uni<Void> expire​(K key,
                                                   long seconds)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command EXPIRE. Summary: Set a key's time to live in seconds Group: generic Requires Redis 1.0.0
        Specified by:
        expire in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        key - the key
        seconds - the new TTL
        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.
      • expire

        public io.smallrye.mutiny.Uni<Void> expire​(K key,
                                                   Duration duration)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command EXPIRE. Summary: Set a key's time to live in seconds Group: generic Requires Redis 1.0.0
        Specified by:
        expire in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        key - the key
        duration - the new TTL
        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.
      • expireat

        public io.smallrye.mutiny.Uni<Void> expireat​(K key,
                                                     long timestamp)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command EXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 1.2.0
        Specified by:
        expireat in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        key - the key
        timestamp - the timestamp
        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.
      • expireat

        public io.smallrye.mutiny.Uni<Void> expireat​(K key,
                                                     Instant timestamp)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command EXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 1.2.0
        Specified by:
        expireat in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        key - the key
        timestamp - the timestamp
        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.
      • expireat

        public io.smallrye.mutiny.Uni<Void> expireat​(K key,
                                                     long timestamp,
                                                     ExpireArgs expireArgs)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command EXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 1.2.0
        Specified by:
        expireat in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        key - the key
        timestamp - the timestamp
        expireArgs - the EXPIREAT 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.
      • expireat

        public io.smallrye.mutiny.Uni<Void> expireat​(K key,
                                                     Instant timestamp,
                                                     ExpireArgs expireArgs)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command EXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 1.2.0
        Specified by:
        expireat in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        key - the key
        timestamp - the timestamp
        expireArgs - the EXPIREAT 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.
      • expiretime

        public io.smallrye.mutiny.Uni<Void> expiretime​(K key)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command EXPIRETIME. Summary: Get the expiration Unix timestamp for a key Group: generic Requires Redis 7.0.0
        Specified by:
        expiretime in interface ReactiveTransactionalKeyCommands<K>
        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.
      • keys

        public io.smallrye.mutiny.Uni<Void> keys​(String pattern)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command KEYS. Summary: Find all keys matching the given pattern Group: generic Requires Redis 1.0.0
        Specified by:
        keys in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        pattern - the glob-style pattern
        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.
      • move

        public io.smallrye.mutiny.Uni<Void> move​(K key,
                                                 long db)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command MOVE. Summary: Move a key to another database Group: generic Requires Redis 1.0.0
        Specified by:
        move in interface ReactiveTransactionalKeyCommands<K>
        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.
      • persist

        public io.smallrye.mutiny.Uni<Void> persist​(K key)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command PERSIST. Summary: Remove the expiration from a key Group: generic Requires Redis 2.2.0
        Specified by:
        persist in interface ReactiveTransactionalKeyCommands<K>
        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.
      • pexpire

        public io.smallrye.mutiny.Uni<Void> pexpire​(K key,
                                                    Duration duration,
                                                    ExpireArgs expireArgs)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command PEXPIRE. Summary: Set a key's time to live in milliseconds Group: generic Requires Redis 2.6.0
        Specified by:
        pexpire in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        key - the key
        duration - the new TTL
        expireArgs - the PEXPIRE 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.
      • pexpire

        public io.smallrye.mutiny.Uni<Void> pexpire​(K key,
                                                    long ms)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command PEXPIRE. Summary: Set a key's time to live in milliseconds Group: generic Requires Redis 2.6.0
        Specified by:
        pexpire in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        key - the key
        ms - the new TTL
        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.
      • pexpire

        public io.smallrye.mutiny.Uni<Void> pexpire​(K key,
                                                    Duration duration)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command PEXPIRE. Summary: Set a key's time to live in milliseconds Group: generic Requires Redis 2.6.0
        Specified by:
        pexpire in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        key - the key
        duration - the new TTL
        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.
      • pexpire

        public io.smallrye.mutiny.Uni<Void> pexpire​(K key,
                                                    long milliseconds,
                                                    ExpireArgs expireArgs)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command PEXPIRE. Summary: Set a key's time to live in milliseconds Group: generic Requires Redis 2.6.0
        Specified by:
        pexpire in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        key - the key
        milliseconds - the new TTL
        expireArgs - the PEXPIRE 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.
      • pexpireat

        public io.smallrye.mutiny.Uni<Void> pexpireat​(K key,
                                                      long timestamp)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command PEXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 2.6.0
        Specified by:
        pexpireat in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        key - the key
        timestamp - the timestamp
        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.
      • pexpireat

        public io.smallrye.mutiny.Uni<Void> pexpireat​(K key,
                                                      Instant timestamp)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command PEXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 2.6.0
        Specified by:
        pexpireat in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        key - the key
        timestamp - the timestamp
        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.
      • pexpireat

        public io.smallrye.mutiny.Uni<Void> pexpireat​(K key,
                                                      long timestamp,
                                                      ExpireArgs expireArgs)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command PEXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 2.6.0
        Specified by:
        pexpireat in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        key - the key
        timestamp - the timestamp
        expireArgs - the EXPIREAT 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.
      • pexpireat

        public io.smallrye.mutiny.Uni<Void> pexpireat​(K key,
                                                      Instant timestamp,
                                                      ExpireArgs expireArgs)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command PEXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 2.6.0
        Specified by:
        pexpireat in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        key - the key
        timestamp - the timestamp
        expireArgs - the EXPIREAT 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.
      • pexpiretime

        public io.smallrye.mutiny.Uni<Void> pexpiretime​(K key)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command PEXPIRETIME. Summary: Get the expiration Unix timestamp for a key Group: generic Requires Redis 2.6.0
        Specified by:
        pexpiretime in interface ReactiveTransactionalKeyCommands<K>
        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.
      • pttl

        public io.smallrye.mutiny.Uni<Void> pttl​(K key)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command PTTL. Summary: Get the time to live for a key in milliseconds Group: generic Requires Redis 2.6.0
        Specified by:
        pttl in interface ReactiveTransactionalKeyCommands<K>
        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.
      • randomkey

        public io.smallrye.mutiny.Uni<Void> randomkey()
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command RANDOMKEY. Summary: Return a random key from the keyspace Group: generic Requires Redis 1.0.0
        Specified by:
        randomkey in interface ReactiveTransactionalKeyCommands<K>
        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.
      • renamenx

        public io.smallrye.mutiny.Uni<Void> renamenx​(K key,
                                                     K newkey)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command RENAMENX. Summary: Rename a key, only if the new key does not exist Group: generic Requires Redis 1.0.0
        Specified by:
        renamenx in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        key - the key
        newkey - the new 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.
      • touch

        public io.smallrye.mutiny.Uni<Void> touch​(K... keys)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command TOUCH. Summary: Alters the last access time of a key(s). Returns the number of existing keys specified. Group: generic Requires Redis 3.2.1
        Specified by:
        touch in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        keys - the 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.
      • type

        public io.smallrye.mutiny.Uni<Void> type​(K key)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command TYPE. Summary: Determine the type stored at key Group: generic Requires Redis 1.0.0
        Specified by:
        type in interface ReactiveTransactionalKeyCommands<K>
        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.
      • unlink

        public io.smallrye.mutiny.Uni<Void> unlink​(K... keys)
        Description copied from interface: ReactiveTransactionalKeyCommands
        Execute the command UNLINK. Summary: Delete a key asynchronously in another thread. Otherwise, it is just as DEL, but non-blocking. Group: generic Requires Redis 4.0.0
        Specified by:
        unlink in interface ReactiveTransactionalKeyCommands<K>
        Parameters:
        keys - the 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.