1 | <?php |
||
10 | class RedisSimpleLockFactory implements TtlFactory |
||
11 | { |
||
12 | private $client; |
||
13 | private $defaultTtl; |
||
14 | private $logger; |
||
15 | private $ignoredSAPIs; |
||
16 | |||
17 | public function __construct(Client $client, $defaultTtl = 10000, LoggerInterface $logger = null, array $ignoredSAPIs = []) |
||
24 | |||
25 | /** |
||
26 | * Create a new RedisSimpleLock |
||
27 | * |
||
28 | * @param string $identifier the redis lock key |
||
29 | * @param integer $ttl lock time-to-live in milliseconds |
||
30 | * |
||
31 | * @return RedisSimpleLock |
||
32 | */ |
||
33 | public function create($identifier, $ttl = null) |
||
37 | } |
||
38 |