Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在coldFusion 10中包含CacheIdExists(),它用于查找缓存中存在的结构,但我需要检查缓存中是否存在结构,使用ColdFusion 8
您可以使用操作“获取”。
前任:
<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>