Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -22,10 +22,23 @@ 22 22 23 23 = For Developers = 24 24 25 -== <developerfeatureN>==25 +== New lifespan LRU Cache setup == 26 26 27 - <descriptionofdeveloperfeatureN>27 +It's now possible to define the maximum time to live since the entry is put in the cache. It used to be possible to set it only since the last time the value was used. 28 28 29 +{{code language="java"}} 30 +// Configure cache eviction policy 31 +LRUEvictionConfiguration lru = new LRUEvictionConfiguration(); 32 +// Set maximum size of the cache as 1000 entries 33 +lru.setMaxEntries(1000); 34 +// Set the maximum time to live since when the entry is used to 1 hour 35 +lru.setMaxIdle(3600) 36 +// Set the maximum time to live since when the entry is put in the cache to 1 hour 37 +lru.setLifespan(3600) 38 +{{/code}} 39 + 40 +[[Cache Macro>>extensions:Extension.Cache Macro]] and [[Rendering Cache>>platform:AdminGuide.Performances||anchor="HRenderingcache"]] are now based on this behavior. 41 + 29 29 == Deprecated and Retired projects == 30 30 31 31 * XML-RPC module have been moved to https://github.com/xwiki-contrib/xwiki-platform-xmlrpc