summaryrefslogtreecommitdiffstats
path: root/cps-rest
diff options
context:
space:
mode:
authorToine Siebelink <toine.siebelink@est.tech>2021-01-22 09:33:55 +0000
committerGerrit Code Review <gerrit@onap.org>2021-01-22 09:33:55 +0000
commitb17558915a61c1a2ee4385c69755589fec7c8c94 (patch)
treed15f4dfb005b50dfed5606fa63a7fcb6bc248d54 /cps-rest
parent21578649ae0fe26b4a9cc8dc5f90d0d6a3c6cef6 (diff)
parent1b8a4dd237077944df7bef5fa04c412da01029f0 (diff)
Merge "Introduce caffeine cache"
Diffstat (limited to 'cps-rest')
-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: