Changeset 1976 for coldbox/trunk/system/cache/ObjectPool.cfc
- Timestamp:
- 01/15/09 19:40:39 (4 years ago)
- Files:
-
- 1 modified
-
coldbox/trunk/system/cache/ObjectPool.cfc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
coldbox/trunk/system/cache/ObjectPool.cfc
r1778 r1976 60 60 61 61 <!--- Get the ref key ---> 62 <cffunction name="getSoftRefKey" access="public" returntype="any" hint="Get the soft reference's key " output="false" >62 <cffunction name="getSoftRefKey" access="public" returntype="any" hint="Get the soft reference's key from the soft reference lookback map" output="false" > 63 63 <cfargument name="softRef" required="true" type="any" hint="The soft reference to check"> 64 64 <cfscript> 65 65 var keyMap = getSoftRefKeyMap(); 66 return keyMap[arguments.softRef]; 66 if( structKeyExists(keyMap,arguments.softRef) ){ 67 return keyMap[arguments.softRef]; 68 } 69 else{ 70 return "NOT_FOUND"; 71 } 67 72 </cfscript> 68 73 </cffunction>
