Download the PHP package roadrunner-php/lock without Composer
On this page you can find all versions of the php package roadrunner-php/lock. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download roadrunner-php/lock
More information about roadrunner-php/lock
Files in roadrunner-php/lock
Package lock
Short Description This package provides a PHP integration package for the RoadRunner Lock plugin, which allows for easy management of distributed locks in PHP applications. The plugin provides a fast, lightweight, and reliable way to acquire, release, and manage locks in a distributed environment, making it ideal for use in high-traffic web applications and microservices.
License MIT
Homepage https://roadrunner.dev/
Informations about the package lock
RoadRunner locks
This package provides a PHP integration package for the RoadRunner Lock plugin, which allows for easy management of distributed locks in PHP applications. The plugin provides a fast, lightweight, and reliable way to acquire, release, and manage locks in a distributed environment, making it ideal for use in high-traffic web applications and microservices.
Requirements
Make sure that your server is configured with following PHP version and extensions:
- PHP 8.1+
Installation
You can install the package via composer:
Usage
Acquire lock
Locks a resource so that it can be accessed by one process at a time. When a resource is locked, other processes that attempt to lock the same resource will be blocked until the lock is released.
Acquire read lock
Locks a resource for shared access, allowing multiple processes to access the resource simultaneously. When a resource is locked for shared access, other processes that attempt to lock the resource for exclusive access will be blocked until all shared locks are released.
Release lock
Releases an exclusive lock or read lock on a resource that was previously acquired by a call to lock()
or lockRead()
.
Check lock
Checks if a resource is currently locked and returns information about the lock.
Update TTL
Updates the time-to-live (TTL) for the locked resource.
Testing
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of lock with dependencies
ramsey/uuid Version ^4.7
roadrunner-php/roadrunner-api-dto Version ^1.0
spiral/goridge Version ^4.0