In the coldFusion 10 contains CacheIdExists(),it used to find the structure exists in cache but I need to check If the structure exists in cache, Using ColdFusion 8
Asked
Active
Viewed 259 times
1 Answers
0
You can use action 'GET'.
Ex:
<cfquery name="cached" cachedwithin="10" datasource="TSQL">
SELECT * from HR.Employees;
</cfquery>
<cfcache action="get" name="test" id="cached">
<cfif not structkeyExists(variables, "test")>
<cfoutput >
Exists
</cfoutput>
</cfif>

krishna Ram
- 639
- 3
- 9
- 20