lock icon indicating copy to clipboard operation
lock copied to clipboard

Lock library to provide serialized execution of PHP code.

Results 16 lock issues
Sort by recently updated
recently updated
newest added

how to use this package in laravel?

php 8.1 PostgreSQL 12.9 `SQLSTATE[22003]: Numeric value out of range: 7 ERROR: value "4132123129" is out of range for type integer`

_Spinlock with a twist (pun intended 😉)_ **Problem:** I needed to throw an exception if the lock is already taken, but only after a given timeout. **Proposed solution** The spinlock...

Hi! We encountered a situation when we would like to terminate all the calls when a locked call is already in execution (instead of waiting). @malkusch do you plan to...

The following PHPUnit test fails if I try to use [parallel threads](https://www.php.net/manual/de/parallel.run.php) I'm using `php-lock version 2.1` on `windows` with `php version 7.4.6` If I deactivate the `$this->mutex->synchronized` function by...

Some improvements that can be made: * If the lock fails to be acquired on a majority of servers, immediately abort the lock. * Only release locks on servers where...

What is this this error? `It's not possible to acquire a lock because at least half of the Redis serv er are not available.` This is my code: ``` $redis...

Predis abstracts the multi-redis server setup, but this package can also take multiple predis connections and do the abstraction itself. Which one would be "better" for a locking package?

We are working with a queue system. If one mutex is already used, I would like it to be possible to put the job back on the queue. Like ```...

- `usleep` supports microseconds resolution - Redis support milliseconds expire times The changed method prototypes imply minor BC break if overriden, but no BC break in general, as float does...