Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MemcachedStore.php

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\Store

Code

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));
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal