spring - How to get the current info of the JedisPool -


when use spring-data-redis inject redisconnectionfactory , setup poolconfig, how can infomation of pool in runtime, because found factory not expose pool. thank advance.^.^

my code :

@bean public redisconnectionfactory jedisconnectionfactory() {      jedispoolconfig poolconfig = new jedispoolconfig();     poolconfig.setmaxidle(128);     poolconfig.setjmxenabled(true);     poolconfig.setmaxtotal(8);     poolconfig.setminidle(2);      jedisconnectionfactory factory = new jedisconnectionfactory(poolconfig);     factory.sethostname("localhost");     factory.setport(6379);     factory.setusepool(true);      return factory; } 


Comments

Popular posts from this blog

javascript - How do you prevent nested queries/catches in sequelize? -

java - Could not retrieve pre-bound Hibernate session - Could not obtain transaction-synchronized Session for current thread -

ruby on rails - ActiveRecord order not working -