use of com.alicp.jetcache.CacheConfigException in project jetcache by alibaba.
the class LutteceConnectionManager method reactiveCommands.
public Object reactiveCommands(AbstractRedisClient redisClient) {
connection(redisClient);
LutteceObjects lo = getLutteceObjectsFromMap(redisClient);
if (lo.reactiveCommands == null) {
if (lo.connection instanceof StatefulRedisConnection) {
lo.reactiveCommands = ((StatefulRedisConnection) lo.connection).reactive();
} else if (lo.connection instanceof StatefulRedisClusterConnection) {
lo.reactiveCommands = ((StatefulRedisClusterConnection) lo.connection).reactive();
} else {
throw new CacheConfigException("type " + lo.connection.getClass() + " is not supported");
}
}
return lo.reactiveCommands;
}
Aggregations