You are here

public function Store::isLocked in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/HttpCache/Store.php \Symfony\Component\HttpKernel\HttpCache\Store::isLocked()

Returns whether or not a lock exists.

Parameters

Request $request A Request instance:

Return value

bool true if lock exists, false otherwise

Overrides StoreInterface::isLocked

File

vendor/symfony/http-kernel/HttpCache/Store.php, line 107

Class

Store
Store implements all the logic for storing cache metadata (Request and Response headers).

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

public function isLocked(Request $request) {
  return is_file($this
    ->getPath($this
    ->getCacheKey($request) . '.lck'));
}