Last modified by Thomas Mortagne on 2023/10/13

<
From version < 5.1 >
edited by Thomas Mortagne
on 2015/12/10
To version < 7.1 >
edited by Thomas Mortagne
on 2015/12/11
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -22,10 +22,23 @@
22 22  
23 23  = For Developers =
24 24  
25 -== <developer feature N> ==
25 +== New lifespan LRU Cache setup ==
26 26  
27 -<description of developer feature N>
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

Get Connected