Commit 31c81ff7bb3d5694e028ea90b029e250edfdc3c8

Authored by ci-aliyun
1 parent c01c0a10

chore:增加缓存配置说明

Showing 1 changed file with 26 additions and 1 deletions
README.md
1 -sass-common-lib:公共项目库 1 +## sass-common-lib:公共项目库
  2 +
  3 +### v 1.2.0版本更新记录
  4 +- 利用redis和ehcache增加了缓存支持,redis为L2级缓存,ehcache为L1级cache;
  5 +> application.yml基本配置如下:
  6 +```json
  7 +#开启ehcache和redis两级缓存
  8 +springext:
  9 + cache:
  10 + enable: true
  11 + cacheL1:
  12 + enable: true
  13 + topic: cache #同步L1缓存的topic
  14 + key: "keys"
  15 +```
  16 +```json
  17 +#redis配置
  18 +spring:
  19 + redis:
  20 + database: 10
  21 + host: 192.168.2.252
  22 + port: 6379
  23 +# password: zhnf@123
  24 + pool:
  25 + max-wait: 1
  26 +```