PageRenderTime 72ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

/wheels/cache/strategy/BaseStrategy.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 23 lines | 19 code | 4 blank | 0 comment | 0 complexity | c2bff5acf951f303daf5ef85f2689759 MD5 | raw file
Possible License(s): Apache-2.0, CPL-1.0
  1. <cfcomponent output="false">
  2. <cffunction name="init" access="public" output="false" returntype="any">
  3. <cfargument name="defaultCacheTime" type="numeric" required="false" default="#application.wheels.defaultCacheTime#">
  4. <cfargument name="cacheCullPercentage" type="numeric" required="false" default="#application.wheels.cacheCullPercentage#">
  5. <cfargument name="cacheCullInterval" type="numeric" required="false" default="#application.wheels.cacheCullInterval#">
  6. <cfargument name="maximumItemsToCache" type="numeric" required="false" default="#application.wheels.maximumItemsToCache#">
  7. <cfargument name="cacheDatePart" type="string" required="false" default="#application.wheels.cacheDatePart#">
  8. <cfset variables.$instance = {}>
  9. <cfset StructAppend(variables.$instance, arguments)>
  10. <cfset variables.$instance.cacheLastCulledAt = Now()>
  11. <cfreturn this>
  12. </cffunction>
  13. <cffunction name="evictOnSet" access="public" output="false" returntype="boolean">
  14. <cfreturn true>
  15. </cffunction>
  16. <cffunction name="evictOnGet" access="public" output="false" returntype="boolean">
  17. <cfreturn true>
  18. </cffunction>
  19. </cfcomponent>