| 1 | <?php |
||
| 7 | class WordPressObjectCacheStorage implements CacheStorageInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private $group; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param string $group |
||
| 16 | */ |
||
| 17 | public function __construct($group = 'guzzle') |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param string $key |
||
| 24 | * |
||
| 25 | * @return CacheEntry|null the data or false |
||
| 26 | */ |
||
| 27 | public function fetch($key) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $key |
||
| 43 | * @param CacheEntry $data |
||
| 44 | * |
||
| 45 | * @return bool |
||
| 46 | */ |
||
| 47 | public function save($key, CacheEntry $data) |
||
| 57 | } |
||
| 58 |