Update dependencies
Composer: Laravel 13.35, Livewire 4.4.7, Octane 2.21, Fortify 1.41, Boost 2.10.3 and Pest 5.3.1, with the packages they bring (51 in all, brick/math to 1.0). league/commonmark 2.10.3 closes a high and a medium advisory. npm: Vite 8.3.4 and Playwright 1.64; npm audit fix updates source-map-js past a high advisory. Both audits are now clean. Boost's update rewrote its guidelines in CLAUDE.md and four skills. The Gitea workflows move to the current majors of checkout, setup-node and the Docker actions, which run on Node 24 instead of the end-of-life Node 20. QEMU stays pinned to 9.2.2: 10.2 still segfaults on the arm64 runner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
b594fb2300
commit
63bae2d1a6
@@ -103,7 +103,7 @@ $posts = Post::query()
|
||||
|
||||
## Use Atomic Locks for Race Conditions
|
||||
|
||||
Use a lock when concurrent execution must be serialized. `Cache::lock()` provides an atomic lock when the configured cache store supports locks. `lockForUpdate()` locks selected database rows and must run inside a database transaction. These mechanisms solve different coordination problems.
|
||||
Use a lock when concurrent execution must be serialized. `Cache::lock()` provides an atomic lock when the configured cache store supports locks. `lockForUpdate()` locks selected database rows and must run inside a database transaction. These mechanisms solve different coordination problems. Set the lease (`10` below) longer than the callback can ever run: once it expires, another process can acquire the lock while the first is still working.
|
||||
|
||||
```php
|
||||
Cache::lock('order-processing-'.$order->id, 10)->block(5, function () use ($order) {
|
||||
|
||||
Reference in New Issue
Block a user