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 not auto-updated.

Last update: 2022-05-24 00:16:48 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.