C - the Cluster Pub/Sub connection type this factory acceptsT - the command API type this factory createspublic interface ClusterPubSubCommandsFactory<C extends StatefulRedisClusterPubSubConnection<?,?>,T> extends PubSubCommandsFactory<C,T>
CommandsFactory that creates a command API bound to a Cluster Pub/Sub
connection, for use with StatefulRedisClusterPubSubConnection.commands(ClusterPubSubCommandsFactory).| Modifier and Type | Method and Description |
|---|---|
static <C extends StatefulRedisClusterPubSubConnection<?,?>,T> |
of(Object key,
Function<C,T> builder)
Creates a
ClusterPubSubCommandsFactory from a cache key and a builder. |
keystatic <C extends StatefulRedisClusterPubSubConnection<?,?>,T> ClusterPubSubCommandsFactory<C,T> of(Object key, Function<C,T> builder)
ClusterPubSubCommandsFactory from a cache key and a builder.of in interface CommandsFactory<C extends StatefulRedisClusterPubSubConnection<?,?>,T>of in interface PubSubCommandsFactory<C extends StatefulRedisClusterPubSubConnection<?,?>,T>C - the Cluster Pub/Sub connection typeT - the command API typekey - the cache key, see CommandsFactory.key()builder - creates the command API from a Cluster Pub/Sub connectionCopyright © 2026 lettuce.io. All rights reserved.