From 1c64d870f07311a94fe9212b71344e026fdc665f Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Mon, 16 Sep 2019 14:55:57 +0200 Subject: [PATCH] User Cache expires avery 15 minutes --- .../java/org/gcube/gcat/persistence/ckan/CKANUserCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/gcat/persistence/ckan/CKANUserCache.java b/src/main/java/org/gcube/gcat/persistence/ckan/CKANUserCache.java index 5a94f8a..c58f9ab 100644 --- a/src/main/java/org/gcube/gcat/persistence/ckan/CKANUserCache.java +++ b/src/main/java/org/gcube/gcat/persistence/ckan/CKANUserCache.java @@ -30,7 +30,7 @@ public abstract class CKANUserCache { userCacheConfiguration = new MutableConfiguration().setTypes(String.class, CKANUser.class) .setStoreByValue(false) - .setExpiryPolicyFactory(CreatedExpiryPolicy.factoryOf(new Duration(TimeUnit.MINUTES, 1))); + .setExpiryPolicyFactory(CreatedExpiryPolicy.factoryOf(new Duration(TimeUnit.MINUTES, 15))); userCachePerCkanInstance = new HashMap>(); }