Components
π Distributed Locking Components
π Usage
CouchbaseLock Component
<bx:CouchbaseLock
name="user-#userId#-update"
cache="default"
timeout="5"
expires="30">
// Critical section - only one server executes this at a time
user = getUser(userId);
user.balance += amount;
saveUser(user);
</bx:CouchbaseLock>π Related Documentation
Last updated
Was this helpful?
