well the idletime, timespan and region are all optional according to the docs, so perhaps this is a bug. what happens if you exclude region as well, perhaps it is an all or nothing situation with the optional attribs ?
On Mon, Mar 10, 2014 at 3:25 PM, Byron Mann <[email protected]> wrote: > > I somehow never had occasion to do this using a CF built-in function, but > would like to by-pass entering some of the optional parameters and use > "defaults". > > Specifically I've created a caching region, and will just be using the > defaults for the time-outs. > > CachePut(id, value, [timeSpan], [idleTime], [region], [throwOnError]); > > So I'd like to just do something similar to this: > > CachePut(id=x, value=v, region='myregion'); > > This doesn't work of course. I also tried, argumentCollection without > success. > > I'm assuming this is just the way life is and will have to do something to > just pass the region defaults. > > cachePut(id, val, CacheGetProperties('myregion').TIMETOIDLESECONDS, > CacheGetProperties('myregion').TIMETOLIVESECONDS, 'myregion'); > > > Byron Mann > Lead Engineer & Architect > HostMySite.com > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357907 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

