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

Breadcrumb

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

function StoreInterface::lock

Locks the cache for a given Request.

Return value

bool|string true if the lock is acquired, the path to the current lock otherwise

1 method overrides StoreInterface::lock()
Store::lock in vendor/symfony/http-kernel/HttpCache/Store.php
Tries to lock the cache for a given Request, without blocking.

File

vendor/symfony/http-kernel/HttpCache/StoreInterface.php, line 52

Class

StoreInterface
Interface implemented by HTTP cache stores.

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

public function lock(Request $request) : bool|string;

API Navigation

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