tracker issue : CF-3037990

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

Bug 76159:(Watson Migration Closure)While we have a cacheGetAllIds(), we really need a cacheExists(id)

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Raymond Camden / Raymond Camden (Raymond Camden)

Created: 03/24/2009

Components: Caching

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 7

Problem:

While we have a cacheGetAllIds(), we really need a cacheExists(id). It saves you a step and just seems kinda odd that it isn't there in the first place. This code:

<cfif arrayFind(cacheGetAllIds(), "foo")>

becomes simpler:

<cfif cacheExists("foo")>

Method:


Result:

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

Watson Bug ID:	3037990

External Customer Info:
External Company:  
External Customer Name: Raymond Camden
External Customer Email: 5FBC41E943BD265C992015D5
External Test Config: 03/24/2009

Attachments:

Comments:

Adding this will remove what will be a highly repeated isNull <cfif> in conjunction with the new caching functionalty.
Vote by External U.
23869 | November 10, 2011 07:18:22 PM GMT
This bug has been voted..
Vote by External U.
23870 | November 10, 2011 07:18:23 PM GMT
hard to imagine using cache and not using this missing function.
Vote by External U.
23871 | November 10, 2011 07:18:24 PM GMT
This bug has been voted..
Vote by External U.
23872 | November 10, 2011 07:18:25 PM GMT
I'm in agreement with the others here. Caching is about efficiency and speed, and having this functionality should make the implementation of it more efficient.
Vote by External U.
23873 | November 10, 2011 07:18:26 PM GMT
This bug has been voted..
Vote by External U.
23874 | November 10, 2011 07:18:27 PM GMT
This bug has been voted..
Vote by External U.
23875 | November 10, 2011 07:18:28 PM GMT
CacheIdExists API added since ColdFusion 10 serves this purpose.
Comment by Akhila K.
23868 | December 18, 2014 04:56:08 AM GMT