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

Breadcrumb

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

function Key::reduceLifetime

Parameters

float $ttl the expiration delay of locks in seconds:

File

vendor/symfony/lock/Key.php, line 70

Class

Key
Key is a container for the state of the locks in stores.

Namespace

Symfony\Component\Lock

Code

public function reduceLifetime(float $ttl) : void {
    $newTime = microtime(true) + $ttl;
    if (null === $this->expiringTime || $this->expiringTime > $newTime) {
        $this->expiringTime = $newTime;
    }
}

API Navigation

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