add cache yml

This commit is contained in:
Efstratios Giannopoulos 2023-10-11 10:09:46 +03:00
parent de2f5e67fd
commit 8b05ee1d0f
1 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,38 @@
cache:
manager:
fallbackToNoOpCache: true
caffeineCaches:
- names: [ "apikey" ]
allowNullValues: true
initialCapacity: 100
maximumSize: 500
enableRecordStats: false
expireAfterWriteMinutes: 10
expireAfterAccessMinutes: 10
refreshAfterWriteMinutes: 10
- names: [ "userBySubjectId" ]
allowNullValues: true
initialCapacity: 100
maximumSize: 500
enableRecordStats: false
expireAfterWriteMinutes: 1
expireAfterAccessMinutes: 1
refreshAfterWriteMinutes: 1
- names: [ "supportiveMaterial" ]
allowNullValues: true
initialCapacity: 100
maximumSize: 500
enableRecordStats: false
expireAfterWriteMinutes: 10
expireAfterAccessMinutes: 10
refreshAfterWriteMinutes: 10
mapCaches:
apiKey:
name: apikey
keyPattern: resolve_$keyhash$:v0
userBySubjectId:
name: userBySubjectId
keyPattern: user_by_subject_$subject$:v0
supportiveMaterial:
name: supportiveMaterial
keyPattern: supportive_material_$material$:v0