pricewatch/throttlestorage

PriceWatch ThrottleStorage - phpredis storage for Stiphle library. Stiphle is a little library to try and provide an easy way of throttling/rate limit requests.

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

This package is auto-updated.

Last update: 2024-12-19 13:50:02 UTC


README

This is a phpredis storage for Stiphle library.

Installation via composer

> composer require pricewatch/throttlestorage

Usage

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

License

The MIT License (MIT). Please see License File for more information.