diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2019-11-17 20:45:02 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2019-11-17 20:45:02 +0100 |
commit | 8df3db566a3a937b45ebf11adb90d265e6f5e2d4 (patch) | |
tree | 4d541098d751d5a9acf8c12f6fb9f308ace066ac /vendor/guzzle/guzzle/src/Guzzle/Plugin/Cache/CacheStorageInterface.php | |
download | flyspray-8df3db566a3a937b45ebf11adb90d265e6f5e2d4.tar.xz |
initial checking of customized version 1.0rc9
Diffstat (limited to 'vendor/guzzle/guzzle/src/Guzzle/Plugin/Cache/CacheStorageInterface.php')
-rw-r--r-- | vendor/guzzle/guzzle/src/Guzzle/Plugin/Cache/CacheStorageInterface.php | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/vendor/guzzle/guzzle/src/Guzzle/Plugin/Cache/CacheStorageInterface.php b/vendor/guzzle/guzzle/src/Guzzle/Plugin/Cache/CacheStorageInterface.php new file mode 100644 index 0000000..f3d9154 --- /dev/null +++ b/vendor/guzzle/guzzle/src/Guzzle/Plugin/Cache/CacheStorageInterface.php @@ -0,0 +1,43 @@ +<?php + +namespace Guzzle\Plugin\Cache; + +use Guzzle\Http\Message\RequestInterface; +use Guzzle\Http\Message\Response; + +/** + * Interface used to cache HTTP requests + */ +interface CacheStorageInterface +{ + /** + * Get a Response from the cache for a request + * + * @param RequestInterface $request + * + * @return null|Response + */ + public function fetch(RequestInterface $request); + + /** + * Cache an HTTP request + * + * @param RequestInterface $request Request being cached + * @param Response $response Response to cache + */ + public function cache(RequestInterface $request, Response $response); + + /** + * Deletes cache entries that match a request + * + * @param RequestInterface $request Request to delete from cache + */ + public function delete(RequestInterface $request); + + /** + * Purge all cache entries for a given URL + * + * @param string $url + */ + public function purge($url); +} |