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 を使用して構造がキャッシュに存在するかどうかを確認する必要があります。
アクション「GET」を使用できます。
元:
<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>