我正在使用jedis client
將redis
與ofbiz
集成。 一個redis服務器正在被不同的應用程序使用。 我的問題是默認連接由JedisPool支持
多少連接將由
JedisPool
默認情況下舉行。如果我創建多個
JedisPool
將它影響redis
性能
注:我創造JedisPool
與其他應用程序的默認配置。
client = new JedisPool(ip, port);
有沒有更好的方法?,建議我。由於
更新:默認configuratoin用戶spring data
<bean id="connectionFactory"
class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory"
p:host-name="${app.cache.redis.host}" p:port="${app.cache.redis.port}" p:password="${app.cache.redis.password}" />