Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/http-kernel/HttpCache/StoreInterface.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
25 interface StoreInterface | 25 interface StoreInterface |
26 { | 26 { |
27 /** | 27 /** |
28 * Locates a cached Response for the Request provided. | 28 * Locates a cached Response for the Request provided. |
29 * | 29 * |
30 * @param Request $request A Request instance | |
31 * | |
32 * @return Response|null A Response instance, or null if no cache entry was found | 30 * @return Response|null A Response instance, or null if no cache entry was found |
33 */ | 31 */ |
34 public function lookup(Request $request); | 32 public function lookup(Request $request); |
35 | 33 |
36 /** | 34 /** |
37 * Writes a cache entry to the store for the given Request and Response. | 35 * Writes a cache entry to the store for the given Request and Response. |
38 * | 36 * |
39 * Existing entries are read and any that match the response are removed. This | 37 * Existing entries are read and any that match the response are removed. This |
40 * method calls write with the new list of cache entries. | 38 * method calls write with the new list of cache entries. |
41 * | 39 * |
42 * @param Request $request A Request instance | |
43 * @param Response $response A Response instance | |
44 * | |
45 * @return string The key under which the response is stored | 40 * @return string The key under which the response is stored |
46 */ | 41 */ |
47 public function write(Request $request, Response $response); | 42 public function write(Request $request, Response $response); |
48 | 43 |
49 /** | 44 /** |
50 * Invalidates all cache entries that match the request. | 45 * Invalidates all cache entries that match the request. |
51 * | |
52 * @param Request $request A Request instance | |
53 */ | 46 */ |
54 public function invalidate(Request $request); | 47 public function invalidate(Request $request); |
55 | 48 |
56 /** | 49 /** |
57 * Locks the cache for a given Request. | 50 * Locks the cache for a given Request. |
58 * | |
59 * @param Request $request A Request instance | |
60 * | 51 * |
61 * @return bool|string true if the lock is acquired, the path to the current lock otherwise | 52 * @return bool|string true if the lock is acquired, the path to the current lock otherwise |
62 */ | 53 */ |
63 public function lock(Request $request); | 54 public function lock(Request $request); |
64 | 55 |
65 /** | 56 /** |
66 * Releases the lock for the given Request. | 57 * Releases the lock for the given Request. |
67 * | 58 * |
68 * @param Request $request A Request instance | |
69 * | |
70 * @return bool False if the lock file does not exist or cannot be unlocked, true otherwise | 59 * @return bool False if the lock file does not exist or cannot be unlocked, true otherwise |
71 */ | 60 */ |
72 public function unlock(Request $request); | 61 public function unlock(Request $request); |
73 | 62 |
74 /** | 63 /** |
75 * Returns whether or not a lock exists. | 64 * Returns whether or not a lock exists. |
76 * | |
77 * @param Request $request A Request instance | |
78 * | 65 * |
79 * @return bool true if lock exists, false otherwise | 66 * @return bool true if lock exists, false otherwise |
80 */ | 67 */ |
81 public function isLocked(Request $request); | 68 public function isLocked(Request $request); |
82 | 69 |