| 1 | <?php |
||
| 12 | class NoCacheItem implements ItemInterface |
||
| 13 | { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private $key; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param string $key |
||
| 22 | */ |
||
| 23 | public function __construct($key) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | public function getKey() |
||
| 35 | |||
| 36 | /** |
||
| 37 | * always null since we don't cache |
||
| 38 | * @return \Serializable|mixed |
||
| 39 | */ |
||
| 40 | public function get() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * as if.. |
||
| 47 | * |
||
| 48 | * @param \Serializable $value |
||
| 49 | * @param int $ttl |
||
| 50 | * @returns boolean |
||
| 51 | */ |
||
| 52 | public function set($value = null, $ttl = null) |
||
| 56 | |||
| 57 | /** |
||
| 58 | * we never hit the cache since we dont cache |
||
| 59 | * @return bool |
||
| 60 | */ |
||
| 61 | public function isHit() |
||
| 65 | |||
| 66 | /** |
||
| 67 | * Removes the current key from the cache. |
||
| 68 | * |
||
| 69 | * @return \Psr\Cache\ItemInterface |
||
| 70 | * The current item. |
||
| 71 | */ |
||
| 72 | public function delete() |
||
| 76 | |||
| 77 | /** |
||
| 78 | * nope doesnt exist. ever |
||
| 79 | * @return bool |
||
| 80 | */ |
||
| 81 | public function exists() |
||
| 85 | } |
||
| 86 |