2

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

Venkatesh
  • 75
  • 4

1 Answers1

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