Changeset 781 for framework/1-6-0/trunk/framework/CacheHandler.cfc
- Timestamp:
- 05/13/2008 12:39:10 AM (22 months ago)
- Files:
-
- 1 modified
-
framework/1-6-0/trunk/framework/CacheHandler.cfc (modified) (4 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 />
