Reputation: 1813
Please can somebody tell me whether named locks apply across the session, application or server?
I have been looking at the documentation and have only managed to confuse myself further.
What I want to be able to do is to name a lock dynamically (based on a user ID for instance) and have this lock apply application wide. I do not want to lock the whole application scope because this would be overkill.
Upvotes: 0
Views: 74
Reputation: 29870
The apply to the entire CF instance, which isn't quite what it says in the docs ("CFLOCK"):
Lock names are global to a ColdFusion server.
The difference between reality and what the docs say is that there can be more than one CF instance running on a given server; locks in instance A
will not exist as far as instance B
is concerned.
Upvotes: 4