Distributed Locking
Introduced in version 3.3.0, the <cfRedisLock> tag offers distributed locking for clustered instances.
In clustered environments, it is often necessary to prevent multiple instances from executing methods at the same time, thus preventing collisions with data access and modificication. The <cfRedisLock>
tag ( redisLock
in script ) allows the user to place a lock across all running instances in the cluster.
The tag functions exactly like cflock/lock
with the exception of the cache
and bypass
arguments. The the bypass
argument can be useful in development environments when not using a distributed cache.
Tag Usage
Script Usage
Last updated