- parameter eternal changed from false to true value in such a way data never expire.Data will be always in cache.

- method insertDataIntoCache changed in order to add a check on key. If cache contains it then the related element is added in cache.

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/databases-manager-portlet@101683 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Loredana Liccardo 2014-11-24 09:52:01 +00:00
parent 359e7a83c6
commit d68735e2ca
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements
CacheConfiguration config = new CacheConfiguration();
config.setName("DBCache");
config.memoryStoreEvictionPolicy(MemoryStoreEvictionPolicy.LRU);
config.eternal(false);
config.eternal(true);
config.timeToLiveSeconds(172800);
config.timeToIdleSeconds(0);
// config.maxEntriesLocalHeap(10000);