Interface LettuceOperations.SyncRedisOperation<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.SyncRedisOperation<K,V,T>
Functional interface for synchronous Redis operations.
  • Method Summary

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

    • execute

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