From 1b8a4dd237077944df7bef5fa04c412da01029f0 Mon Sep 17 00:00:00 2001 From: Claudio David Gasparini Date: Wed, 13 Jan 2021 19:12:25 +0100 Subject: Introduce caffeine cache Issue-ID: CPS-163 Signed-off-by: Claudio David Gasparini Change-Id: Iff9b831c2d895d82aff419f60a8dd86a38b545d0 --- cps-rest/src/main/resources/application.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cps-rest/src') diff --git a/cps-rest/src/main/resources/application.yml b/cps-rest/src/main/resources/application.yml index e8af0bcfb..80c6af6c6 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: -- cgit 1.2.3-korg