diff options
author | Claudio David Gasparini <claudio.gasparini@pantheon.tech> | 2021-01-13 19:12:25 +0100 |
---|---|---|
committer | Claudio David Gasparini <claudio.gasparini@pantheon.tech> | 2021-01-21 18:52:55 +0100 |
commit | 1b8a4dd237077944df7bef5fa04c412da01029f0 (patch) | |
tree | 5b3d9f62011f82b0d78c9a43a1363de635af21f8 /cps-rest/src | |
parent | cd9f368b1f3c5e25e17e21649e582d84a909ac79 (diff) |
Introduce caffeine cache
Issue-ID: CPS-163
Signed-off-by: Claudio David Gasparini <claudio.gasparini@pantheon.tech>
Change-Id: Iff9b831c2d895d82aff419f60a8dd86a38b545d0
Diffstat (limited to 'cps-rest/src')
-rw-r--r-- | cps-rest/src/main/resources/application.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cps-rest/src/main/resources/application.yml b/cps-rest/src/main/resources/application.yml index e8af0bcfb2..80c6af6c68 100644 --- a/cps-rest/src/main/resources/application.yml +++ b/cps-rest/src/main/resources/application.yml @@ -22,6 +22,11 @@ spring: driverClassName: org.postgresql.Driver
initialization-mode: always
+ cache:
+ type: caffeine
+ cache-names: yangSchema
+ caffeine:
+ spec: maximumSize=10000,expireAfterAccess=10m
# Actuator
management:
endpoints:
|