# mybatis-redis **Repository Path**: loveliyiyi/mybatis-redis ## Basic Information - **Project Name**: mybatis-redis - **Description**: 扩展mybatis-redis,细化redis部署类型,解决不支持redis集群部署方式连接 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 11 - **Forks**: 4 - **Created**: 2017-05-15 - **Last Updated**: 2024-08-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #mybatis-redis 扩展org.mybatis.caches,解决原依赖不支持redis集群方式连接。 使用 在classpath下创建redis.properties文件,填下如下内容 ``` blockWhenExhausted=true evictionPolicyClassName=org.apache.commons.pool2.impl.DefaultEvictionPolicy fairness=false address=172.16.41.152:6379 deployType=2 jmxEnabled=true jmxNameBase=pool jmxNamePrefix=pool lifo=true maxIdle=8 maxTotal=8 maxWaitMillis=-1 minEvictableIdleTimeMillis=60000 minIdle=0 numTestsPerEvictionRun=-1 softMinEvictableIdleTimeMillis=1800000 testOnBorrow=false testOnCreate=false testOnReturn=false testWhileIdle=true timeBetweenEvictionRunMillis=3000 ``` 解释: address,redis地址,多个以逗号分割 deployType,部署类型,0,单机;1,分片;2,集群。