tourstream / typo3-redis-lock-strategy
此包已被废弃,不再维护。未建议替代包。
3.0.1
2017-12-21 00:57 UTC
Requires
- php: ^7.0
- typo3/cms: ^8.6.1||^8.7
Requires (Dev)
- phpunit/phpunit: ^5.7
- typo3/testing-framework: ^1.0
Replaces
- redis_lock_strategy: 3.0.1
This package is not auto-updated.
Last update: 2021-03-06 09:34:41 UTC
README
TYPO3 扩展:redis 锁策略
该扩展添加了优先级为100的redis锁策略。因此,redis锁将替代基于文件的锁,特别适用于带有nfs的集群。
特性
- Redis 锁
安装
安装此扩展的推荐方法是使用 Composer。在基于Composer的TYPO3项目根目录下,只需执行以下操作:
composer require tourstream/typo3-redis-lock-strategy
此扩展使用了 pecl 扩展 redis。
使用方法
$GLOBALS['TYPO3_CONF_VARS']['SYS']['redis_lock'] = [
'host' => 'localhost',
'port' => 6379, // optional, default 6379
'database' => 0, // optional, default 0
'ttl' => '60', // optional, default 60
'auth' => 'secret' // optional, for secured redis db's
];