C - the connection type this factory acceptsT - the command API type this factory createspublic interface CommandsFactory<C,T> extends Function<C,T>
StatefulRedisConnection.commands(CommandsFactory). A
command API that can be obtained this way provides a static factory() method that returns its
CommandsFactory; alternatively, build one with of(Object, Function).| Modifier and Type | Method and Description |
|---|---|
Object |
key()
Returns the key under which the created command API is cached on the connection.
|
static <C,T> CommandsFactory<C,T> |
of(Object key,
Function<C,T> builder)
Creates a
CommandsFactory from a cache key and a builder. |
Object key()
static <C,T> CommandsFactory<C,T> of(Object key, Function<C,T> builder)
CommandsFactory from a cache key and a builder.C - the connection typeT - the command API typekey - the cache key, see key()builder - creates the command API from a connectionCopyright © 2026 lettuce.io. All rights reserved.