public interface RedisProvider
HelperRedis instances.| Modifier and Type | Method and Description |
|---|---|
RedisCredentials |
getGlobalCredentials()
Gets the global redis credentials being used for the global redis instance.
|
HelperRedis |
getRedis()
Gets the global redis instance.
|
HelperRedis |
getRedis(RedisCredentials credentials)
Constructs a new redis instance using the given credentials.
|
@Nonnull HelperRedis getRedis()
@Nonnull HelperRedis getRedis(@Nonnull RedisCredentials credentials)
These instances are not cached, and a new redis instance is created each time this method is called.
credentials - the credentials for the redis instance@Nonnull RedisCredentials getGlobalCredentials()
Copyright © 2017. All rights reserved.