public interface RedisProvider
Redis instances.| Modifier and Type | Method and Description |
|---|---|
RedisCredentials |
getGlobalCredentials()
Gets the global redis credentials being used for the global redis instance.
|
Redis |
getRedis()
Gets the global redis instance.
|
Redis |
getRedis(RedisCredentials credentials)
Constructs a new redis instance using the given credentials.
|
@Nonnull Redis getRedis()
@Nonnull Redis 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 © 2018. All rights reserved.