argos/annotation-service/annotation-web/src/main/resources/config/cache.yml

51 lines
1.4 KiB
YAML
Raw Normal View History

2024-02-09 17:50:34 +01:00
cache:
manager:
fallbackToNoOpCache: true
caffeineCaches:
- names: [ apikey ]
allowNullValues: true
initialCapacity: 100
maximumSize: 500
enableRecordStats: false
2024-03-28 13:57:51 +01:00
expireAfterWriteSeconds: 600
2024-02-09 17:50:34 +01:00
- names: [ tenantByCode ]
allowNullValues: true
initialCapacity: 100
maximumSize: 500
enableRecordStats: false
2024-03-28 13:57:51 +01:00
expireAfterWriteSeconds: 600
2024-02-09 17:50:34 +01:00
- names: [ tenantById ]
allowNullValues: true
initialCapacity: 100
maximumSize: 500
enableRecordStats: false
2024-03-28 13:57:51 +01:00
expireAfterWriteSeconds: 600
2024-02-09 17:50:34 +01:00
- names: [ userBySubjectId ]
allowNullValues: true
initialCapacity: 100
maximumSize: 500
enableRecordStats: false
2024-03-28 13:57:51 +01:00
expireAfterWriteSeconds: 320
2024-02-09 17:50:34 +01:00
- names: [ userAccessTenant ]
allowNullValues: true
initialCapacity: 100
maximumSize: 500
enableRecordStats: false
2024-03-28 13:57:51 +01:00
expireAfterWriteSeconds: 320
2024-02-09 17:50:34 +01:00
mapCaches:
apiKey:
name: apikey
keyPattern: resolve_$keyhash$:v0
userBySubjectId:
name: userBySubjectId
keyPattern: user_by_subject_$subject$:v0
tenantByCode:
name: tenantByCode
keyPattern: tenant_by_code_$code$:v0
tenantById:
name: tenantById
keyPattern: tenant_by_id_$tenantId$:v0
userAllowedTenant:
name: userAccessTenant
keyPattern: user_access_tenant_$user_id$_$tenant_id$:v0