for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace hamburgscleanest\GuzzleAdvancedThrottle\Cache\Drivers;
use hamburgscleanest\GuzzleAdvancedThrottle\Exceptions\RedisDatabaseNotSetException;
use Illuminate\Redis\RedisManager;
/**
* Class RedisDriver
* @package hamburgscleanest\GuzzleAdvancedThrottle\Cache\Drivers
*/
class RedisDriver extends LaravelDriver
{
* @throws \hamburgscleanest\GuzzleAdvancedThrottle\Exceptions\RedisDatabaseNotSetException
protected function _setContainer() : void
if (!isset($this->_options['database']))
throw new RedisDatabaseNotSetException();
}
$this->_container['redis'] = new RedisManager('predis', $this->_options['database']);