Quick Question About Locking
I have a CFC that i create and store in the application scope. It looks like this
<cflock scope="application" type="exclusive" timeout="10">
<cfset application.utilityfunctions = createObject("component", "cfcs.utilityfunctions") />
</cflock>
Now my question... do i need to lock the application scope when using one of the methods in my component? or not?
<cfoutput>
<cflock scope="applicaition" type="readOnly" timeout="10">
#application.utilityfunctions.getCoolStringFunctionTool(myinputstring)#
</cflock>
</cfoutput>
Or can i simply use this
<cfoutput>
#application.utilityfunctions.getCoolStringFunctionTool(myinputstring)#
</cfoutput>
Thanks,
Greg
