public class HelperRedisPlugin extends ExtendedJavaPlugin implements RedisProvider
| Constructor and Description |
|---|
HelperRedisPlugin() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
enable() |
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.
|
bind, bindModule, disable, getBundledFile, getClassloader, getPlugin, getService, isPluginEnabled, load, loadConfig, loadConfigNode, onDisable, onEnable, onLoad, provideService, provideService, registerCommand, registerListener, setupConfiggetClassLoader, getCommand, getConfig, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitprotected void enable()
enable in class ExtendedJavaPlugin@Nonnull public Redis getRedis()
RedisProvidergetRedis in interface RedisProvider@Nonnull public Redis getRedis(@Nonnull RedisCredentials credentials)
RedisProviderThese instances are not cached, and a new redis instance is created each time this method is called.
getRedis in interface RedisProvidercredentials - the credentials for the redis instance@Nonnull public RedisCredentials getGlobalCredentials()
RedisProvidergetGlobalCredentials in interface RedisProviderCopyright © 2018. All rights reserved.