tracker issue : CF-3040847

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

Bug 81844:Inability to Specify Cache Key in Functions

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Rob Bilson / Rob Brooks-Bilson (Rob Bilson)

Created: 01/28/2010

Components: Caching

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 / 270526

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 2

Problem:

Inability to Specify Cache Key in Functions

The cfcache tag has the key attribute which allows you to specify a custom cache region other than the default template or object cache:

<cfcache key="customCache" action="put" id="1" value="#now()#">

This creates a cache region at runtime called customCache.  Getting, putting and flushing the cache are all supported from the cfcache tag.  

However, it’s not currently possible to use any of the caching functions to operate on the custom cache region because there is no way to specify which cache region you want to use – the functions always apply to the default object or template cache.I’d like to propose adding an optional attribute to all cache functions to allow a developer to pass in a custom cache region (key) for the function to operate against where applicable.
Method:


Result:

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

Watson Bug ID:	3040847

External Customer Info:
External Company:  
External Customer Name: Rob Brooks-Bilson
External Customer Email: 6B546ECA439559160AAC0C16
External Test Config: 01/28/2010

Attachments:

Comments: