@Ignored public interface IRedis extends IPersistence<IRedisSession,IRedisConfig,IRedisCommandHolder>
Modifier and Type | Interface and Description |
---|---|
static class |
IRedis.ConnectionType
Redis连接方式
|
Modifier and Type | Field and Description |
---|---|
static String |
MODULE_NAME |
Modifier and Type | Method and Description |
---|---|
IRedisDataSourceAdapter |
getDataSourceAdapter(String dataSourceName)
获取指定源数据源适配器
|
IRedisDataSourceAdapter |
getDefaultDataSourceAdapter()
获取默认数据源适配器
|
<T> T |
openSession(IDataSourceRouter dataSourceRouter,
IRedisSessionExecutor<T> executor)
开启会话并执行会话执行器接口逻辑(执行完毕会话将自动关闭)
|
<T> T |
openSession(IRedisCommandHolder connectionHolder,
IRedisSessionExecutor<T> executor)
开启会话并执行会话执行器接口逻辑(执行完毕会话将自动关闭)
|
<T> T |
openSession(IRedisSessionExecutor<T> executor)
开启会话并执行会话执行器接口逻辑(执行完毕会话将自动关闭)
|
<T> T |
openSession(String dataSourceName,
IRedisSessionExecutor<T> executor)
开启会话并执行会话执行器接口逻辑(执行完毕会话将自动关闭)
|
void |
subscribe(JedisPubSub jedisPubSub,
String... channels)
订阅
|
void |
subscribe(String dataSourceName,
JedisPubSub jedisPubSub,
String... channels)
订阅
|
getConfig, getConnectionHolder, getDefaultConnectionHolder, getOwner, openSession, openSession, openSession, openSession, releaseConnectionHolder
initialize, isInitialized
close
static final String MODULE_NAME
IRedisDataSourceAdapter getDefaultDataSourceAdapter() throws Exception
Exception
- 可能产生的任何异常IRedisDataSourceAdapter getDataSourceAdapter(String dataSourceName) throws Exception
dataSourceName
- 数据源名称Exception
- 可能产生的任何异常<T> T openSession(IRedisSessionExecutor<T> executor) throws Exception
T
- 执行结果对象类型executor
- 会话执行器Exception
- 可能产生的任何异常<T> T openSession(String dataSourceName, IRedisSessionExecutor<T> executor) throws Exception
T
- 执行结果对象类型dataSourceName
- 数据源名称executor
- 会话执行器Exception
- 可能产生的任何异常<T> T openSession(IRedisCommandHolder connectionHolder, IRedisSessionExecutor<T> executor) throws Exception
T
- 执行结果对象类型connectionHolder
- 数据源连接持有者对象executor
- 会话执行器Exception
- 可能产生的任何异常<T> T openSession(IDataSourceRouter dataSourceRouter, IRedisSessionExecutor<T> executor) throws Exception
T
- 执行结果对象类型dataSourceRouter
- 数据源路由对象executor
- 会话执行器Exception
- 可能产生的任何异常void subscribe(JedisPubSub jedisPubSub, String... channels)
jedisPubSub
- 发布订阅对象channels
- 频道Copyright © 2022. All rights reserved.