tracker issue : CF-3126079

select a category, or use search below
(searches all categories and all time range)
Title:

cachePut timeSpan and idleTime handling of '0'

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 02/29/2012

Components: Caching

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Public Beta / 281708

Priority/Frequency: Normal / Few users will encounter

Locale/System: English / Platforms All

Vote Count: 0

CF9 and CF10 ignore '0' for both timeSpan and idleTime in cachePut().

ehcache.xml's description for both says that '0' should represent infinity.

This ticket is a request to support that behavior.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3126079

External Customer Info:
External Company:  
External Customer Name: itisdesign
External Customer Email:

Attachments:

Comments:

Related post: http://prerelease.adobe.com/r/?ec4d1570ef91452a9663bd2202ab8fb7
Comment by External U.
20498 | February 29, 2012 01:19:14 AM GMT
Verified this is fixed in CF10 Final (build 10,282462). However, Ehcache describes timeToIdleSeconds and timeToLiveSeconds as "The maximum number of seconds an element can exist in the cache [...]". Whereas CF9 and CF10 treat them as "the default number of seconds". http://www.ehcache.org/documentation/user-guide/configuration#dynamically-changing-cache-configuration Repro: 1) in ehcache.xml, set both timeToIdleSeconds and timeToLiveSeconds to ’10’ 2) Run this: cachePut("foo", "bar", createTimeSpan(0,0,0,30), createTimeSpan(0,0,0,30), "object") 3) After 10 seconds, run this: writeDump(cacheGetAllIDs("object")) and see "foo" still exists 4) After 30 seconds, run this: writeDump(cacheGetAllIDs("object")) and see "foo" does not exist What is the expected behavior and should this ticket be un-fixed? New thread started here: http://prerelease.adobe.com/r/?3b6654d79eb748159e6aa92cf8aae417 Thanks!, -Aaron
Comment by External U.
20499 | May 28, 2012 02:29:38 PM GMT