Ensured Redis lock store is wrapped into a retry adapter

This commit is contained in:
Alejandro Celaya
2019-08-07 17:37:24 +02:00
parent 04389fc8b0
commit 73fd348490
3 changed files with 65 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
declare(strict_types=1);
use Shlinkio\Shlink\Common\Cache\RedisFactory;
use Shlinkio\Shlink\Common\Lock\RetryLockStoreDelegatorFactory;
use Symfony\Component\Lock;
use Zend\ServiceManager\AbstractFactory\ConfigAbstractFactory;
@@ -22,6 +23,11 @@ return [
'lock_store' => Lock\Store\FlockStore::class,
'redis_lock_store' => Lock\Store\RedisStore::class,
],
'delegators' => [
Lock\Store\RedisStore::class => [
RetryLockStoreDelegatorFactory::class,
],
],
],
ConfigAbstractFactory::class => [