Authored by zhangjun

redis改造文档

... ... @@ -41,23 +41,30 @@
**配置文件: config.properties**
新增配置
#twemproxy addresses,splite with ','
redis.notsync.twemproxy.addresses=192.168.102.222:6379,192.168.102.221:6379
redis.notsync.twemproxy.addresses=192.168.102.222:6379,192.168.102.221:6379
#cache sync delete message producer,for example, this is in aws
rabbit_cache_clean_producer= 192.168.102.162:35672
rabbit_cache_clean_producer_password = yoho
rabbit_cache_clean_producer_user = yoho
rabbit.cacheclean.producer.host=192.168.102.162:35672
#cache sync delete message consumer ,for example, this is in qq, in other cloud of producer
rabbit_cache_clean_consumer= 192.168.102.222:5672
rabbit_cache_clean_consumer_password = yoho
rabbit_cache_clean_consumer_user = yoho
rabbit.cacheclean.consumer.host= 192.168.102.222:5672
**配置文件:auto config下的 config.properties**
rabbit.cacheclean.producer.host=${rabbit.cacheclean.producer.host} rabbit.cacheclean.consumer.host=${rabbit.cacheclean.consumer.host}
pom中添加依赖
<dependency> <groupId>com.yoho.core</groupId> <artifactId>yoho-core-cache-clean</artifactId> </dependency>
**2. 使用同步的redis template**
跟原来使用方法一致,不制定bean注入时,默认使用 同步的 template。
... ...