Byron, That's the problem with positional vs. named arguments on BIFs. I ran into this with a cross-platform app that needed to run on ACF & Railo. Railo supports named parameters for some BIFs (including cachePut() ), but ACF doesn't. So I had to split my caching function into separate CFCs for ACF & Railo. The line that runs cachePut() in ACF looks like this:
CachePut( id, val, "", "", "myregion" ); while the one for Railo looks like this: CachePut( id:id, value:val, cacheName:"myregion" ); The empty strings for the two timeout arguments is acceptable on ACF. -Carl V. On 3/10/2014 8:25 AM, Byron Mann wrote: > 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:357909 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm