summaryrefslogtreecommitdiffstats
path: root/cps-rest/src/main/resources
diff options
context:
space:
mode:
authorClaudio David Gasparini <claudio.gasparini@pantheon.tech>2021-01-13 19:12:25 +0100
committerClaudio David Gasparini <claudio.gasparini@pantheon.tech>2021-01-21 18:52:55 +0100
commit1b8a4dd237077944df7bef5fa04c412da01029f0 (patch)
tree5b3d9f62011f82b0d78c9a43a1363de635af21f8 /cps-rest/src/main/resources
parentcd9f368b1f3c5e25e17e21649e582d84a909ac79 (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/main/resources')
-rw-r--r--cps-rest/src/main/resources/application.yml5
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: