.yml提交
Change-Id: Ia8a96bd55cfce31fed65f7e801f8cefcdba5c67e
diff --git a/src/main/resources/application-caching.yml b/src/main/resources/application-caching.yml
new file mode 100644
index 0000000..972a688
--- /dev/null
+++ b/src/main/resources/application-caching.yml
@@ -0,0 +1,41 @@
+spring:
+ jpa:
+ properties:
+ redisson-config: classpath:conf/redisson.yaml
+ hibernate:
+ cache:
+ region:
+ factory_class: org.redisson.hibernate.RedissonRegionFactory
+ use_second_level_cache: true
+ use_query_cache: true
+ region_prefix: sapling
+ use_structured_entries: true
+ provider_configuration_file_resource_path: classpath:conf/hibernate-redis.properties
+ cache:
+ redis:
+ cache-null-values: true
+ key-prefix: sapling
+ time-to-live: 86400
+ enable-statistics: true
+ use-key-prefix: true
+jetcache:
+ statIntervalMinutes: 15
+ areaInCacheName: false
+ local:
+ default:
+ type: caffeine #other choose:caffeine
+ keyConvertor: jackson #other choose:fastjson/jackson
+ limit: 100
+ remote:
+ default:
+ type: redis
+ keyConvertor: jackson #other choose:fastjson/jackson
+ broadcastChannel: sapling
+ valueEncoder: java #other choose:kryo/kryo5
+ valueDecoder: java #other choose:kryo/kryo5
+ poolConfig:
+ minIdle: 5
+ maxIdle: 20
+ maxTotal: 50
+ host: ${redis.host}
+ port: ${redis.port}
\ No newline at end of file