jcs - Java Caching System MaxLife vs MaxLifeSecond -


i'm using java caching system (jcs - https://commons.apache.org/proper/commons-jcs/ )

i'd know difference between maxlife , maxlifeseconds

maxlife: if specify elements within region not eternal, can set max life seconds. if exceeded elements removed passively when client tries retrieve them. if using memory shrinker, items can removed actively.

maxlifeseconds: if elements not eternal, option defines maximum life of each object before removed. if memory shrinker running, objects removed shrinker; if not, removed when they're accessed. option defaults -1, disables option.

these definitions seem same.

is change in name?

my guess maxlifeseconds depricated.

with jcs 2.0-beta-1 have:

    cacheaccess.getcachecontrol().getelementattributes().setmaxlife(arg0);     cacheaccess.getcachecontrol().getelementattributes().getmaxlife(); 

and jcs documentation lists maxlife region (element) property

jcs regionproperties

in old mailing list archive (thu, 11 may 2006 ) find reference maxlifeseconds in message upgrading jcs version 1.2.7.0

jakarta-jcs-users mailing list archives


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -