PHPackages                             tinywan/webman-lock - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. tinywan/webman-lock

ActiveLibrary[Caching](/categories/caching)

tinywan/webman-lock
===================

Webman plugin tinywan/webman-lock

v0.0.2(2y ago)64361MITPHPPHP &gt;=7.2

Since Jun 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Tinywan/webman-lock)[ Packagist](https://packagist.org/packages/tinywan/webman-lock)[ RSS](/packages/tinywan-webman-lock/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

based on lua script redis lock for webman plugin
================================================

[](#based-on-lua-script-redis-lock-for-webman-plugin)

[![Latest Stable Version](https://camo.githubusercontent.com/7557596f7a1640893f29cd3929b97438b4c9787daab7127f6fdbc53fa611196b/687474703a2f2f706f7365722e707567782e6f72672f74696e7977616e2f7765626d616e2d6c6f636b2f76)](https://packagist.org/packages/tinywan/webman-lock)[![Total Downloads](https://camo.githubusercontent.com/80abf5d4ecf1ed888629752cdf88c9886b4ea1b5cad4474bbe3ecf1c3f59c218/687474703a2f2f706f7365722e707567782e6f72672f74696e7977616e2f7765626d616e2d6c6f636b2f646f776e6c6f616473)](https://packagist.org/packages/tinywan/webman-lock)[![Latest Unstable Version](https://camo.githubusercontent.com/e4aa6d87cd687f2b06190fcda6790230cbe957463242cb5047e1fa5ae1df919c/687474703a2f2f706f7365722e707567782e6f72672f74696e7977616e2f7765626d616e2d6c6f636b2f762f756e737461626c65)](https://packagist.org/packages/tinywan/webman-lock)[![License](https://camo.githubusercontent.com/faa8b59ab39525717af9ba89f878e6b10fa5d268f3a7bdbb3ca9911d914958ee/687474703a2f2f706f7365722e707567782e6f72672f74696e7977616e2f7765626d616e2d6c6f636b2f6c6963656e7365)](https://packagist.org/packages/tinywan/webman-lock)[![PHP Version Require](https://camo.githubusercontent.com/b9a4cc60c58ffdaa1ae2bb4d5254c85d59dc5bcad4e741d77996d4702157de92/687474703a2f2f706f7365722e707567782e6f72672f74696e7977616e2f7765626d616e2d6c6f636b2f726571756972652f706870)](https://packagist.org/packages/tinywan/webman-lock)

安装
--

[](#安装)

```
composer require tinywan/webman-lock
```

使用
--

[](#使用)

```
// 锁名称
$lockName = md5((string) time());
// 锁标识
$lockId = \Tinywan\Lock\RedisLock::acquire($lockName);
if (!$lockId) {
    return '未获得锁标识，请稍后再试';
}

// 业务处理

// 释放锁
\Tinywan\Lock\RedisLock::release($lockName, $lockId);
```

###  Health Score

23

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 85.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~675 days

Total

2

Last Release

858d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b0042e0b68ff6a731ef382a03eecd211736c2d619acc55b2b326988085f72bfb?d=identicon)[Tinywan](/maintainers/Tinywan)

---

Top Contributors

[![Tinywan](https://avatars.githubusercontent.com/u/14959876?v=4)](https://github.com/Tinywan "Tinywan (6 commits)")[![bilulanlv](https://avatars.githubusercontent.com/u/90918529?v=4)](https://github.com/bilulanlv "bilulanlv (1 commits)")

---

Tags

lockredisredis-locktinywanwebmanworkerman

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/tinywan-webman-lock/health.svg)

```
[![Health](https://phpackages.com/badges/tinywan-webman-lock/health.svg)](https://phpackages.com/packages/tinywan-webman-lock)
```

###  Alternatives

[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)[phpfastcache/phpssdb

PHP SSDB Driver for phpFastCache

14736.9k1](/packages/phpfastcache-phpssdb)[rapidwebltd/rw-file-cache

RW File Cache is a PHP File-based Caching Library. Its syntax is designed to closely resemble the PHP memcache extension.

15196.8k7](/packages/rapidwebltd-rw-file-cache)[yuzuru-s/redis-recommend

Wrapping Redis's sorted set APIs for specializing recommending operations.

392.9k](/packages/yuzuru-s-redis-recommend)[ichhabrecht/intcache

Turn uncachable page objects into cacheable links

193.9k](/packages/ichhabrecht-intcache)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
