Overview ColdFusion Open BlueDragon Lucee

Ensures the integrity of shared data. Instantiates the following kinds of locks: * Exclusive allows single-thread access to the CFML constructs * Read-only allows multiple requests to access CFML constructs


Name Required Type Default Description
id No
name No String Lock name. Mutually exclusive with the scope attribute. Only one request can execute the code within a cflock tag with a given name at a time. Cannot be an empty string.
scope No String Lock scope. Mutually exclusive with the name attribute. Lock name. Only one request in the specified scope can execute the code within this tag (or within any other cflock tag with the same lock scope scope) at a time.
throwontimeout No Boolean true How timeout conditions are handled.
timeout Yes Numeric Maximum length of time, in seconds, to wait to obtain a lock. If lock is obtained, tag execution continues. Otherwise, behavior depends on throwOnTimeout attribute value.
type No String exclusive readOnly: lets more than one request read shared data. exclusive: lets one request read or write shared data.