Show
Ignore:
Timestamp:
05/13/2008 12:39:10 AM (22 months ago)
Author:
peterfarrell
Message:

- Removed use of UUID for cache handler id and used a pseudo-random generator to generate the id (about 2,000% faster than using UUID)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • framework/1-6-0/trunk/framework/commands/CacheCommand.cfc

    r771 r781  
    4343        <cffunction name="init" access="public" returntype="CacheCommand" output="false" 
    4444                hint="Initializes the command."> 
    45                 <cfargument name="handlerId" type="uuid" required="false" default="#CreateUUID()#" /> 
     45                <cfargument name="handlerId" type="string" required="false" default="#CreateUUID()#" /> 
    4646                <cfargument name="cacheName" type="string" required="false" default="" /> 
    4747                <cfargument name="alias" type="string" required="false" default="" /> 
     
    9191        ---> 
    9292        <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" /> 
    9494                <cfset variables.handlerId = arguments.handlerId /> 
    9595        </cffunction> 
    96         <cffunction name="getHandlerId" access="private" returntype="uuid" output="false"> 
     96        <cffunction name="getHandlerId" access="private" returntype="string" output="false"> 
    9797                <cfreturn variables.handlerId /> 
    9898        </cffunction>