sitegeist/treasuremap
最新稳定版本:v1.0.0
Composer 安装命令:
composer require sitegeist/treasuremap
包简介
Switch between multiple cache-backend via environment configuration.
README 文档
README
Switch between multiple cache backendConfigurations based on a backendDiscriminator configuration.
This allows switching between cache configurations based on environment variables which enables things like green/blue caches to control cache invalidation during rollouts of larger applications.
Authors & Sponsors
- Martin Ficzel - ficzel@sitegeist.de
The development and the public-releases of this package is generously sponsored by our employer http://www.sitegeist.de.
Configuration
The 'Sitegeist\TreasureMap\Backend\SwitchableBackend' cache backend is configured by the backendDiscriminator and
the backendConfigurations the discriminator value will define which of the backend backendConfigurations will be
used to instantiate the actually used backend.
Caches.yaml:
Neos_Fusion_Content: backend: 'Sitegeist\TreasureMap\Backend\SwitchableBackend' backendOptions: backendDiscriminator: '%env:GREEN_OR_BLUE%' backendConfigurations: green: backend: 'Neos\Cache\Backend\RedisBackend' backendOptions: hostname: '%env:REDIS_HOST%' port: '%env:REDIS_PORT%' database: 11 blue: backend: 'Neos\Cache\Backend\RedisBackend' backendOptions: hostname: '%env:REDIS_HOST%' port: '%env:REDIS_PORT%' database: 21
Installation
Sitegeist.TreasureMap is available via packagist run composer require sitegeist/treasuremap to install.
We use semantic-versioning so every breaking change will increase the major-version number.
Contribution
We will gladly accept contributions. Please send us pull requests.
License
See LICENSE
统计信息
- 总下载量: 7.96k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2023-05-22