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?
