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 aRedisAPIinstance 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 aRedisAPIinstance for the given connection config.- Parameters:
logger- aLoggerServiceto use for logging- Returns:
- A new (or cached)
RedisAPI
-