Changeset 781
- Timestamp:
- 05/12/2008 07:39:10 PM (14 months ago)
- Location:
- framework/1-6-0/trunk/framework
- Files:
-
- 3 modified
-
CacheHandler.cfc (modified) (4 diffs)
-
CacheManager.cfc (modified) (2 diffs)
-
commands/CacheCommand.cfc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
framework/1-6-0/trunk/framework/CacheHandler.cfc
r768 r781 33 33 ---> 34 34 <cfset variables.commands = ArrayNew(1) /> 35 <cfset variables.handlerId = CreateUUID()/>35 <cfset variables.handlerId = "" /> 36 36 <cfset variables.alias = ""/> 37 37 <cfset variables.cacheName = "" /> … … 55 55 <cfargument name="parentHandlerType" type="string" required="false" default="" /> 56 56 57 <!--- run setters --->57 <!--- Run setters ---> 58 58 <cfset setAlias(arguments.alias) /> 59 59 <cfset setCacheName(arguments.cacheName) /> … … 61 61 <cfset setParentHandlerName(arguments.parentHandlerName) /> 62 62 <cfset setParentHandlerType(arguments.parentHandlerType) /> 63 <cfset setHandlerId(createHandlerId()) /> 63 64 64 65 <cfreturn this /> … … 290 291 </cffunction> 291 292 293 <cffunction name="createHandlerId" access="private" returntype="string" output="false" 294 hint="Creates a random handler id. Does not use UUID for performance reasons."> 295 <cfreturn Hash(getTickCount() & RandRange(0, 100000))/> 296 </cffunction> 297 292 298 <!--- 293 299 ACCESSORS 294 300 ---> 295 <cffunction name="getHandlerId" access="public" returntype="uuid" output="false" 301 <cffunction name="setHandlerId" access="private" returntype="void" output="false"> 302 <cfargument name="handlerId" type="string" required="true" /> 303 <cfset variables.handlerId = arguments.handlerId /> 304 </cffunction> 305 <cffunction name="getHandlerId" access="public" returntype="string" output="false" 296 306 hint="Returns the handler id."> 297 307 <cfreturn variables.handlerId /> -
framework/1-6-0/trunk/framework/CacheManager.cfc
r780 r781 67 67 </cffunction> 68 68 69 <cffunction name="loadCacheHandlerFromXml" access="public" returntype=" uuid" output="false"69 <cffunction name="loadCacheHandlerFromXml" access="public" returntype="string" output="false" 70 70 hint="Loads a cache handler from Xml."> 71 71 <cfargument name="configXML" type="string" required="true" /> … … 172 172 173 173 <!--- Add the handler ---> 174 <cfset variables.handlers[handlerId] = arguments.cacheHandler/>174 <cfset StructInsert(variables.handlers, handlerId, arguments.cacheHandler, false) /> 175 175 176 176 <!--- Register the handler by handler type ---> -
framework/1-6-0/trunk/framework/commands/CacheCommand.cfc
r771 r781 43 43 <cffunction name="init" access="public" returntype="CacheCommand" output="false" 44 44 hint="Initializes the command."> 45 <cfargument name="handlerId" type=" uuid" required="false" default="#CreateUUID()#" />45 <cfargument name="handlerId" type="string" required="false" default="#CreateUUID()#" /> 46 46 <cfargument name="cacheName" type="string" required="false" default="" /> 47 47 <cfargument name="alias" type="string" required="false" default="" /> … … 91 91 ---> 92 92 <cffunction name="setHandlerId" access="private" returntype="void" output="false"> 93 <cfargument name="handlerId" type=" uuid" required="true" />93 <cfargument name="handlerId" type="string" required="true" /> 94 94 <cfset variables.handlerId = arguments.handlerId /> 95 95 </cffunction> 96 <cffunction name="getHandlerId" access="private" returntype=" uuid" output="false">96 <cffunction name="getHandlerId" access="private" returntype="string" output="false"> 97 97 <cfreturn variables.handlerId /> 98 98 </cffunction>
