PHPackages                             limingxinleo/idempotent - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. limingxinleo/idempotent

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

limingxinleo/idempotent
=======================

Making multiple identical function calls has the same effect as making a single function call.

v0.3.1(3y ago)43.3kMITPHPPHP &gt;=8.0

Since Oct 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/limingxinleo/idempotent)[ Packagist](https://packagist.org/packages/limingxinleo/idempotent)[ RSS](/packages/limingxinleo-idempotent/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (4)Dependencies (9)Versions (5)Used By (0)

幂等器
===

[](#幂等器)

安装
--

[](#安装)

```
composer require limingxinleo/idempotent

```

使用
--

[](#使用)

### Hyperf 框架

[](#hyperf-框架)

以下代码会在 2s 内返回相同的数据

```
