Download the PHP package ledc/locker without Composer
On this page you can find all versions of the php package ledc/locker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package locker
介绍
symfony/lock for webman
在 webman 中简化使用业务锁功能
解决以下问题:
- 并发业务操作有时候需要锁来防止并发导致的数据插入或更新问题
- 单独使用 symfony/lock 时一般使用 $factory->createLock('key'),此时 key 是一个字符串,不利于后期维护或多处使用
安装
compoer require ledc/locker
使用
定义一个自己的 Locker 类
比如:support\facade\Locker.php
,继承 Ledc\Locker
然后在类上方加入注释(用于代码提示),举例如下:
业务中使用
All versions of locker with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
ext-redis Version *
workerman/webman-framework Version ^1.5.0
webman/console Version ^1.3
symfony/lock Version ^7.0
ext-redis Version *
workerman/webman-framework Version ^1.5.0
webman/console Version ^1.3
symfony/lock Version ^7.0
The package ledc/locker contains the following files
Loading the files please wait ....