Class ReactiveTransactionalAutoSuggestCommandsImpl<K>

java.lang.Object
io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
io.quarkus.redis.runtime.datasource.ReactiveTransactionalAutoSuggestCommandsImpl<K>
All Implemented Interfaces:
ReactiveTransactionalAutoSuggestCommands<K>, ReactiveTransactionalRedisCommands

public class ReactiveTransactionalAutoSuggestCommandsImpl<K> extends AbstractTransactionalCommands implements ReactiveTransactionalAutoSuggestCommands<K>
  • Constructor Details

  • Method Details

    • ftSugAdd

      public io.smallrye.mutiny.Uni<Void> ftSugAdd(K key, String string, double score, boolean increment)
      Description copied from interface: ReactiveTransactionalAutoSuggestCommands
      Execute the command FT.SUGADD. Summary: Add a suggestion string to an auto-complete suggestion dictionary Group: auto-suggest
      Specified by:
      ftSugAdd in interface ReactiveTransactionalAutoSuggestCommands<K>
      Parameters:
      key - the suggestion dictionary key
      string - the suggestion string to index
      score - the floating point number of the suggestion string's weight
      increment - increments the existing entry of the suggestion by the given score, instead of replacing the score. This is useful for updating the dictionary based on user queries in real time.
      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.
    • ftSugDel

      public io.smallrye.mutiny.Uni<Void> ftSugDel(K key, String string)
      Description copied from interface: ReactiveTransactionalAutoSuggestCommands
      Execute the command FT.SUGDEL. Summary: Delete a string from a suggestion index Group: auto-suggest
      Specified by:
      ftSugDel in interface ReactiveTransactionalAutoSuggestCommands<K>
      Parameters:
      key - the suggestion dictionary key
      string - the suggestion string to index
      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.
    • ftSugget

      public io.smallrye.mutiny.Uni<Void> ftSugget(K key, String prefix)
      Description copied from interface: ReactiveTransactionalAutoSuggestCommands
      Execute the command FT.SUGGET. Summary: Get completion suggestions for a prefix Group: auto-suggest
      Specified by:
      ftSugget in interface ReactiveTransactionalAutoSuggestCommands<K>
      Parameters:
      key - the suggestion dictionary key
      prefix - is prefix to complete on.
      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.
    • ftSugget

      public io.smallrye.mutiny.Uni<Void> ftSugget(K key, String prefix, GetArgs args)
      Description copied from interface: ReactiveTransactionalAutoSuggestCommands
      Execute the command FT.SUGGET. Summary: Get completion suggestions for a prefix Group: auto-suggest
      Specified by:
      ftSugget in interface ReactiveTransactionalAutoSuggestCommands<K>
      Parameters:
      key - the suggestion dictionary key
      prefix - is prefix to complete on.
      args - the extra argument, must not be null
      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.
    • ftSugLen

      public io.smallrye.mutiny.Uni<Void> ftSugLen(K key)
      Description copied from interface: ReactiveTransactionalAutoSuggestCommands
      Execute the command FT.SUGLEN. Summary: Get the size of an auto-complete suggestion dictionary Group: auto-suggest
      Specified by:
      ftSugLen in interface ReactiveTransactionalAutoSuggestCommands<K>
      Parameters:
      key - the suggestion dictionary 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.