Package com.kamikazejam.kamicommon.redis
Class RedisConnector
java.lang.Object
com.kamikazejam.kamicommon.redis.RedisConnector
The source for all RabbitMQ interactions.
Use
getAPI(RedisConf)
to fetch a RedisAPI
instance.
All instances are cached by URL for connection/channel reuse.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RedisConnector
public RedisConnector()
-
-
Method Details
-
getAPI
Get aRedisAPI
instance for the given connection config.- Returns:
- A new (or cached)
RedisAPI
-
getAPI
@NotNull public static @NotNull RedisAPI getAPI(@NotNull @NotNull RedisConf conf, @NotNull @NotNull LoggerService logger) Get aRedisAPI
instance for the given connection config.- Parameters:
logger
- aLoggerService
to use for logging- Returns:
- A new (or cached)
RedisAPI
-