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

Breadcrumb

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

function ZookeeperStore::save

Overrides PersistingStoreInterface::save

File

vendor/symfony/lock/Store/ZookeeperStore.php, line 57

Class

ZookeeperStore
ZookeeperStore is a PersistingStoreInterface implementation using Zookeeper as store engine.

Namespace

Symfony\Component\Lock\Store

Code

public function save(Key $key) : void {
    if ($this->exists($key)) {
        return;
    }
    $resource = $this->getKeyResource($key);
    $token = $this->getUniqueToken($key);
    $this->createNewLock($resource, $token);
    $key->markUnserializable();
    $this->checkNotExpired($key);
}

API Navigation

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