I have a case where I need to have an application variable expire after a
known amount of time. Do you have a favorite method for doing this? I was
thinking of something like:
application.thevar = structnew();
application.thevar.createtick = gettickcount();
application.thevar.thevalue = foo;
Are you on ColdFusion 9+? Why not use the built-in cache functionality
(cachePut(), cacheGet(), etc.)? If you are on ColdFusion 10+, you can
even put related objects into a cache region and manually flush that
region using CacheRemoveAll( region ) .
-Carl V.
On 8/7/2014 1:06 PM, John M
Sweet. Thanks!
On Aug 7, 2014 5:51 PM, Carl Von Stetten vonner.li...@vonner.net wrote:
Are you on ColdFusion 9+? Why not use the built-in cache functionality
(cachePut(), cacheGet(), etc.)? If you are on ColdFusion 10+, you can
even put related objects into a cache region and manually
3 matches
Mail list logo