zer0-framework/throttle

dev-main 2022-11-06 20:20 UTC

This package is auto-updated.

Last update: 2024-09-07 00:12:22 UTC


README

该组件用于限制单位时间内请求数量或操作次数。

配置

使用示例

$throttle = $this->app->factory('Throttle');
var_dump($throttle->throttle('test', 10, 20, 60));