Interface LettuceOperations.AsyncRedisOperation<K,V,T>

Type Parameters:
K - Key Type
V - Value Type
T - Result Type
Enclosing class:
LettuceOperations<K,V>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface LettuceOperations.AsyncRedisOperation<K,V,T>
Functional interface for asynchronous Redis operations.
  • Method Summary

    Modifier and Type
    Method
    Description
    execute(io.lettuce.core.api.async.RedisAsyncCommands<K,V> async)
    Executes logic against the Async commands interface.
  • Method Details

    • execute

      CompletableFuture<T> execute(io.lettuce.core.api.async.RedisAsyncCommands<K,V> async) throws Exception
      Executes logic against the Async commands interface.
      Parameters:
      async - The async command interface.
      Returns:
      A future representing the result.
      Throws:
      Exception - Allows implementing methods to throw exceptions without strict try/catch blocks.