Home > Back-end >  Springboot redis thread pool, redisTemplate need to manually release the thread pool back?
Springboot redis thread pool, redisTemplate need to manually release the thread pool back?

Time:09-16


 # redis configurationSpring. Redis. Host=127.0.0.1 
Spring. Redis. Port=6379
Spring. Redis. Jedis. Pool. Max - active=50
# connection pool biggest jam waiting time (use a negative value indicates no restrictions)
Spring. Redis. Jedis. Pool. Max - wait=3000
# connection pool in the largest free connection
Spring. Redis. Jedis. Pool. Max - idle=20
# connection pool in minimum free connection
Spring. Redis. Jedis. Pool. Min - idle=2
# connection timeout time (in milliseconds)
Spring. Redis. Timeout=5000

 redisTemplate. OpsForValue (). The set (" hello ", "hello redis"); 

springboot redis thread pool, redisTemplate after use need to manually release the thread pool back?
  • Related