Reputation: 75
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
Upvotes: 2
Views: 272
Reputation: 659
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>
Upvotes: 0