From 31c81ff7bb3d5694e028ea90b029e250edfdc3c8 Mon Sep 17 00:00:00 2001 From: boni Date: Mon, 3 Sep 2018 13:20:05 +0800 Subject: [PATCH] chore:增加缓存配置说明 --- README.md | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2bb478f..0634140 100644 --- a/README.md +++ b/README.md @@ -1 +1,26 @@ -sass-common-lib:公共项目库 +## sass-common-lib:公共项目库 + +### v 1.2.0版本更新记录 +- 利用redis和ehcache增加了缓存支持,redis为L2级缓存,ehcache为L1级cache; +> application.yml基本配置如下: +```json +#开启ehcache和redis两级缓存 +springext: + cache: + enable: true + cacheL1: + enable: true + topic: cache #同步L1缓存的topic + key: "keys" +``` +```json +#redis配置 +spring: + redis: + database: 10 + host: 192.168.2.252 + port: 6379 +# password: zhnf@123 + pool: + max-wait: 1 +``` -- libgit2 0.21.4