public function StoreInterface::write

Writes a cache entry to the store for the given Request and Response.

Existing entries are read and any that match the response are removed. This method calls write with the new list of cache entries.

Parameters

Request $request A Request instance:

Response $response A Response instance:

Return value

string The key under which the response is stored

1 method overrides StoreInterface::write()
Store::write in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/Store.php
Writes a cache entry to the store for the given Request and Response.

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/StoreInterface.php, line 47

Class

StoreInterface
Interface implemented by HTTP cache stores.

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

public function write(Request $request, Response $response);