Package io.lettuce.core.dynamic.output
Interface CommandOutputFactory
-
- 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 interface CommandOutputFactory
Strategy interface to createCommandOutput
givenRedisCodec
.Implementing classes usually produce the same
CommandOutput
type.- Since:
- 5.0
- Author:
- Mark Paluch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <K,V>
CommandOutput<K,V,?>create(RedisCodec<K,V> codec)
Create and initialize a newCommandOutput
givenRedisCodec
.
-
-
-
Method Detail
-
create
<K,V> CommandOutput<K,V,?> create(RedisCodec<K,V> codec)
Create and initialize a newCommandOutput
givenRedisCodec
.- Type Parameters:
K
- Key type.V
- Value type.- Parameters:
codec
- must not benull
.- Returns:
- the new
CommandOutput
.
-
-