Class ReactiveTransactionalStringCommandsImpl<K,V>

java.lang.Object
io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
io.quarkus.redis.runtime.datasource.ReactiveTransactionalStringCommandsImpl<K,V>
All Implemented Interfaces:
ReactiveTransactionalRedisCommands, ReactiveTransactionalStringCommands<K,V>, ReactiveTransactionalValueCommands<K,V>

public class ReactiveTransactionalStringCommandsImpl<K,V> extends AbstractTransactionalCommands implements ReactiveTransactionalStringCommands<K,V>, ReactiveTransactionalValueCommands<K,V>
  • Constructor Details

  • Method Details

    • append

      public io.smallrye.mutiny.Uni<Void> append(K key, V value)
      Description copied from interface: ReactiveTransactionalStringCommands
      Execute the command APPEND. Summary: Append a value to a key Group: string Requires Redis 2.0.0
      Specified by:
      append in interface ReactiveTransactionalStringCommands<K,V>
      Specified by:
      append 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.
    • decr

      public io.smallrye.mutiny.Uni<Void> decr(K key)
      Description copied from interface: ReactiveTransactionalStringCommands
      Execute the command DECR. Summary: Decrement the integer value of a key by one Group: string Requires Redis 1.0.0
      Specified by:
      decr in interface ReactiveTransactionalStringCommands<K,V>
      Specified by:
      decr in interface ReactiveTransactionalValueCommands<K,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.
    • 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.
    • get

      public io.smallrye.mutiny.Uni<Void> get(K key)
      Description copied from interface: ReactiveTransactionalStringCommands
      Execute the command GET. Summary: Get the value of a key Group: string Requires Redis 1.0.0
      Specified by:
      get in interface ReactiveTransactionalStringCommands<K,V>
      Specified by:
      get in interface ReactiveTransactionalValueCommands<K,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.
    • getdel

      public io.smallrye.mutiny.Uni<Void> getdel(K key)
      Description copied from interface: ReactiveTransactionalStringCommands
      Execute the command GETDEL. Summary: Get the value of a key and delete the key Group: string Requires Redis 6.2.0
      Specified by:
      getdel in interface ReactiveTransactionalStringCommands<K,V>
      Specified by:
      getdel in interface ReactiveTransactionalValueCommands<K,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.
    • 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.
    • getset

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

      public io.smallrye.mutiny.Uni<Void> incr(K key)
      Description copied from interface: ReactiveTransactionalStringCommands
      Execute the command INCR. Summary: Increment the integer value of a key by one Group: string Requires Redis 1.0.0
      Specified by:
      incr in interface ReactiveTransactionalStringCommands<K,V>
      Specified by:
      incr in interface ReactiveTransactionalValueCommands<K,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.
    • 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.
    • incrbyfloat

      public io.smallrye.mutiny.Uni<Void> incrbyfloat(K key, double amount)
      Description copied from interface: ReactiveTransactionalStringCommands
      Execute the command INCRBYFLOAT. Summary: Increment the float value of a key by the given amount Group: string Requires Redis 2.6.0
      Specified by:
      incrbyfloat in interface ReactiveTransactionalStringCommands<K,V>
      Specified by:
      incrbyfloat 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.
    • lcs

      public io.smallrye.mutiny.Uni<Void> lcs(K key1, K key2)
      Description copied from interface: ReactiveTransactionalStringCommands
      Execute the command LCS. Summary: Find longest common substring Group: string Requires Redis 7.0.0
      Specified by:
      lcs in interface ReactiveTransactionalStringCommands<K,V>
      Specified by:
      lcs in interface ReactiveTransactionalValueCommands<K,V>
      Parameters:
      key1 - the key
      key2 - 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.
    • lcsLength

      public io.smallrye.mutiny.Uni<Void> lcsLength(K key1, K key2)
      Description copied from interface: ReactiveTransactionalStringCommands
      Execute the command LCS. Summary: Find longest common substring and return the length (using LEN) Group: string Requires Redis 7.0.0
      Specified by:
      lcsLength in interface ReactiveTransactionalStringCommands<K,V>
      Specified by:
      lcsLength in interface ReactiveTransactionalValueCommands<K,V>
      Parameters:
      key1 - the key
      key2 - 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.
    • mget

      public io.smallrye.mutiny.Uni<Void> mget(K... keys)
      Description copied from interface: ReactiveTransactionalStringCommands
      Execute the command MGET. Summary: Get the values of all the given keys Group: string Requires Redis 1.0.0
      Specified by:
      mget in interface ReactiveTransactionalStringCommands<K,V>
      Specified by:
      mget in interface ReactiveTransactionalValueCommands<K,V>
      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.
    • mset

      public io.smallrye.mutiny.Uni<Void> mset(Map<K,V> map)
      Description copied from interface: ReactiveTransactionalStringCommands
      Execute the command MSET. Summary: Set multiple keys to multiple values Group: string Requires Redis 1.0.1
      Specified by:
      mset in interface ReactiveTransactionalStringCommands<K,V>
      Specified by:
      mset 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.
    • 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)
      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>
      Specified by:
      set 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.
    • 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.
    • setex

      public io.smallrye.mutiny.Uni<Void> setex(K key, long seconds, V value)
      Description copied from interface: ReactiveTransactionalStringCommands
      Execute the command SETEX. Summary: Set the value and expiration of a key Group: string Requires Redis 2.0.0
      Specified by:
      setex in interface ReactiveTransactionalStringCommands<K,V>
      Specified by:
      setex 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
    • setnx

      public io.smallrye.mutiny.Uni<Void> setnx(K key, V value)
      Description copied from interface: ReactiveTransactionalStringCommands
      Execute the command SETNX. Summary: Set the value of a key, only if the key does not exist Group: string Requires Redis 1.0.0
      Specified by:
      setnx in interface ReactiveTransactionalStringCommands<K,V>
      Specified by:
      setnx 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.
    • setrange

      public io.smallrye.mutiny.Uni<Void> setrange(K key, long offset, V value)
      Description copied from interface: ReactiveTransactionalStringCommands
      Execute the command SETRANGE. Summary: Overwrite part of a string at key starting at the specified offset Group: string Requires Redis 2.2.0
      Specified by:
      setrange in interface ReactiveTransactionalStringCommands<K,V>
      Specified by:
      setrange 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.
    • strlen

      public io.smallrye.mutiny.Uni<Void> strlen(K key)
      Description copied from interface: ReactiveTransactionalStringCommands
      Execute the command STRLEN. Summary: Get the length of the value stored in a key Group: string Requires Redis 2.2.0
      Specified by:
      strlen in interface ReactiveTransactionalStringCommands<K,V>
      Specified by:
      strlen in interface ReactiveTransactionalValueCommands<K,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.