public class RedisPlugin extends ExtendedJavaPlugin implements RedisProvider
| Constructor and Description |
|---|
RedisPlugin() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
enable() |
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.
|
bind, bindComposite, bindRunnable, disable, getBundledFile, getClassloader, getPlugin, getService, load, loadConfig, loadConfigNode, onDisable, onEnable, onLoad, provideService, provideService, registerCommand, registerListenergetClassLoader, 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 HelperRedis getRedis()
RedisProvidergetRedis in interface RedisProvider@Nonnull public HelperRedis 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 © 2017. All rights reserved.