| | |
| | | jedisPoolConfig.setBlockWhenExhausted(blockWhenExhausted); |
| | | // 是否启用pool的jmx管理功能, 默认true |
| | | jedisPoolConfig.setJmxEnabled(true); |
| | | JedisPool jedisPool = new JedisPool(jedisPoolConfig, host, port, timeout, password); |
| | | JedisPool jedisPool = new JedisPool(jedisPoolConfig, host, port, timeout); |
| | | return jedisPool; |
| | | } |
| | | } |
| | |
| | | # RedisÊý¾Ý¿âË÷Òý£¨Ä¬ÈÏΪ0£© |
| | | spring.redis.database=0 |
| | | # Redis·þÎñÆ÷µØÖ· |
| | | spring.redis.host=127.0.0.1 |
| | | spring.redis.host=39.108.171.31 |
| | | # Redis·þÎñÆ÷Á¬½Ó¶Ë¿Ú |
| | | spring.redis.port=6379 |
| | | #spring.redis.port=16379 |
| | | spring.redis.port=10012 |
| | | # Redis·þÎñÆ÷Á¬½ÓÃÜÂ루ĬÈÏΪ¿Õ£© |
| | | spring.redis.password=123456 |
| | | #spring.redis.password= |
| | | #spring.redis.password=123456 |
| | | # Á¬½Ó³Ø×î´óÁ¬½ÓÊý£¨Ê¹ÓøºÖµ±íʾûÓÐÏÞÖÆ£© |
| | | spring.redis.jedis.pool.max-active=1024 |
| | | # Á¬½Ó³Ø×î´ó×èÈûµÈ´ýʱ¼ä£¨Ê¹ÓøºÖµ±íʾûÓÐÏÞÖÆ£© |
| | |
| | | # Á¬½Ó³ØÖеÄ×î´ó¿ÕÏÐÁ¬½Ó |
| | | spring.redis.jedis.pool.max-idle=200 |
| | | # Á¬½Ó³ØÖеÄ×îС¿ÕÏÐÁ¬½Ó |
| | | spring.redis.jedis.pool.min-idle=0 |
| | | spring.redis.jedis.pool.min-idle=50 |
| | | # Á¬½Ó³¬Ê±Ê±¼ä£¨ºÁÃ룩 |
| | | spring.redis.timeout=10000 |
| | | #redisÅäÖýáÊø |