pixelfederation/phystrix-redis
Composer 安装命令:
composer require pixelfederation/phystrix-redis
包简介
Redis storage implementation for Phystrix (https://github.com/upwork/phystrix)
README 文档
README
Redis storage implementation for Phystrix (https://github.com/upwork/phystrix) It uses the predis/predis package.
Usage
Require redis state storage library:
composer require pixelfederation/phystrix-redis
Create new instance of \PixelFederation\Phystrix\Storage\RedisStateStorage and inject to \Odesk\Phystrix\CommandMetricsFactory and \Odesk\Phystrix\CircuitBreakerFactory
Usage with Symfony Framework
Install Redis Bundle
Install Phystrix Bundle and override state storage configuration:
# services.yml services: PixelFederation\Phystrix\Storage\RedisStateStorage: arguments: - '@snc_redis.cache' phystrix.state_storage: alias: PixelFederation\Phystrix\Storage\RedisStateStorage
统计信息
- 总下载量: 1.56k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2017-10-30