pricewatch/throttlestorage

PriceWatch ThrottleStorage - Stiphle 库的 phpredis 存储工具。Stiphle 是一个小型库,旨在提供一个简单的方式来限制请求的节流/速率。

dev-master 2020-06-07 17:09 UTC

This package is auto-updated.

Last update: 2024-09-19 13:22:35 UTC


README

这是 Stiphle 库的 phpredis 存储工具。Stiphle 是一个开源库,您可以访问Stiphle

通过 composer 安装

> composer require pricewatch/throttlestorage

用法

$throttle = new \Stiphle\Throttle\LeakyBucket();
$storage = new \PriceWatch\ThrottleStorage\Redis(new Redis());
$throttle->setStorage($storage);

许可证

MIT 许可证 (MIT)。更多信息请参阅许可证文件