PageRenderTime 19ms CodeModel.GetById 13ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/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
 1<cfcomponent output="false">
 2
 3	<cffunction name="init" access="public" output="false" returntype="any">
 4		<cfargument name="defaultCacheTime" type="numeric" required="false" default="#application.wheels.defaultCacheTime#">
 5		<cfargument name="cacheCullPercentage" type="numeric" required="false" default="#application.wheels.cacheCullPercentage#">
 6		<cfargument name="cacheCullInterval" type="numeric" required="false" default="#application.wheels.cacheCullInterval#">
 7		<cfargument name="maximumItemsToCache" type="numeric" required="false" default="#application.wheels.maximumItemsToCache#">
 8		<cfargument name="cacheDatePart" type="string" required="false" default="#application.wheels.cacheDatePart#">
 9		<cfset variables.$instance = {}>
10		<cfset StructAppend(variables.$instance, arguments)>
11		<cfset variables.$instance.cacheLastCulledAt = Now()>
12		<cfreturn this>
13	</cffunction>
14
15	<cffunction name="evictOnSet" access="public" output="false" returntype="boolean">
16		<cfreturn true>
17	</cffunction>
18
19	<cffunction name="evictOnGet" access="public" output="false" returntype="boolean">
20		<cfreturn true>
21	</cffunction>
22
23</cfcomponent>