Xing Jinwen | 2b2dc8c | 2025-06-04 23:15:13 +0800 | [diff] [blame^] | 1 | spring: |
| 2 | jpa: |
| 3 | properties: |
| 4 | redisson-config: classpath:conf/redisson.yaml |
| 5 | hibernate: |
| 6 | cache: |
| 7 | region: |
| 8 | factory_class: org.redisson.hibernate.RedissonRegionFactory |
| 9 | use_second_level_cache: true |
| 10 | use_query_cache: true |
| 11 | region_prefix: sapling |
| 12 | use_structured_entries: true |
| 13 | provider_configuration_file_resource_path: classpath:conf/hibernate-redis.properties |
| 14 | cache: |
| 15 | redis: |
| 16 | cache-null-values: true |
| 17 | key-prefix: sapling |
| 18 | time-to-live: 86400 |
| 19 | enable-statistics: true |
| 20 | use-key-prefix: true |
| 21 | jetcache: |
| 22 | statIntervalMinutes: 15 |
| 23 | areaInCacheName: false |
| 24 | local: |
| 25 | default: |
| 26 | type: caffeine #other choose:caffeine |
| 27 | keyConvertor: jackson #other choose:fastjson/jackson |
| 28 | limit: 100 |
| 29 | remote: |
| 30 | default: |
| 31 | type: redis |
| 32 | keyConvertor: jackson #other choose:fastjson/jackson |
| 33 | broadcastChannel: sapling |
| 34 | valueEncoder: java #other choose:kryo/kryo5 |
| 35 | valueDecoder: java #other choose:kryo/kryo5 |
| 36 | poolConfig: |
| 37 | minIdle: 5 |
| 38 | maxIdle: 20 |
| 39 | maxTotal: 50 |
| 40 | host: ${redis.host} |
| 41 | port: ${redis.port} |