当前位置:网站首页>Get jedis from jedissentinelpool
Get jedis from jedissentinelpool
2022-06-22 05:16:00 【a good idea】
@Bean
public Jedis getjedis() {
JedisSentinelPool redisSentinelPool = null;
redisSentinelPool = new JedisSentinelPool(master, set, redis_password, sentinel_password);
Jedis jedis = null;
try {
jedis = redisSentinelPool.getResource();
return jedis;
} catch (Exception e) {
} finally {
if (jedis != null) {
jedis.close();
}
}
return jedis;
}边栏推荐
- jedispool工具类
- SQL分类,用户属性
- Create a new local content and upload it to the code cloud branch
- DTS migration script Oracle
- C语言字符串的一些使用注意事项
- Storage mode and lifetime of C language variables
- JedisSentinel 工具类
- C语言概念知识扫盲(不定期补充更新)
- ActiveMQ knowledge summary of Message Oriented Middleware
- C language data type conversion rules (implicit conversion + explicit conversion)
猜你喜欢

这是一个图片

Using Matplotlib to realize GUI interaction effect

YARN 应用提交过程

Build JSP development environment in vs Code

Detailed explanation of deep learning technology for building an image search engine that can find similar images

Analysis of T elevator repair in 2022 and simulation test questions of T elevator repair

liunx虚拟机环境使用docker安装oracle数据库,并使用navicat连接

Lottie components make animation easier

7. Gateway global filter

In 2022, the postgraduate entrance examination ran aground | how to counter attack famous IT enterprises and become a programmer in three months
随机推荐
Flynk deployment mode summary
毕业回馈!Apache Doris 社区所有贡献者来领礼品啦!
Which methods are not allowed to be overridden?
力扣33【搜索旋转排序数组】
[chrome] Google tips Google browser comes with scrolling screenshot (full screen shot)
Common knowledge arrangement of numpy database
long start = currentTimeMillis();
Some considerations of C language custom function
VirtualBox 6.1.34 release
加快推进工业互联网,图扑“智”绘发展新蓝图
Rétroaction sur la remise des diplômes! Tous les contributeurs de la communauté Apache Doris sont ici pour recevoir des cadeaux!
9. Gateway cross domain processing
重构思维系列2-函数及变量
Sort ten integers using selection
在Vs Code中搭建JSP开发环境
In depth understanding of JS delete
不允许方法被重写的方式包括哪些?
2022深圳福田区专精特新小巨人企业申报条件,补贴50万
Build JSP development environment in vs Code
What is cloud hosting and what are its advantages?