function MemcachedStore::__construct
Parameters
int $initialTtl the expiration delay of locks in seconds:
File
-
vendor/
symfony/ lock/ Store/ MemcachedStore.php, line 39
Class
- MemcachedStore
- MemcachedStore is a PersistingStoreInterface implementation using Memcached as store engine.
Namespace
Symfony\Component\Lock\StoreCode
public function __construct(\Memcached $memcached, int $initialTtl = 300) {
if (!static::isSupported()) {
throw new InvalidArgumentException('Memcached extension is required.');
}
if ($initialTtl < 1) {
throw new InvalidArgumentException(\sprintf('"%s()" expects a strictly positive TTL. Got %d.', __METHOD__, $initialTtl));
}
}