Package com.ohalee.database.redis
Interface LettuceOperations.AsyncRedisOperation<K,V,T>
- Type Parameters:
K- Key TypeV- Value TypeT- 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.
Functional interface for asynchronous Redis operations.
-
Method Summary
Modifier and TypeMethodDescriptionExecutes logic against the Async commands interface.
-
Method Details
-
execute
CompletableFuture<T> execute(io.lettuce.core.api.async.RedisAsyncCommands<K, V> async) throws ExceptionExecutes 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.
-