for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* RedisArray implementation for php-hystrix.
*
* PHP version 7.2
* @category Adapter
* @package Storage
* @author Liam Sorsby <[email protected]>
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache
* @link https://github.org/liamsorsby/php-hystrix
* For the full copyright and license information, please view the LICENSE file.
*/
namespace liamsorsby\Hystrix\Storage\Adapter;
use Cache\Adapter\Redis\RedisCachePool;
* Class RedisArray
class RedisArray extends AbstractStorage
{
* {@inheritDoc}
* @param array $options Options required to create the storage instance
* @return void
public function create(array $options): void
$redis = new \RedisArray($options['host'], $options);
$cachePool = new RedisCachePool($redis);
$this->setStorage($cachePool);
}