| 1 | <?php |
||
| 20 | class NullDriver implements \Aviat\Ion\Cache\CacheDriverInterface { |
||
| 21 | |||
| 22 | /** |
||
| 23 | * 'Cache' for Null data store |
||
| 24 | */ |
||
| 25 | protected $data; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Create the Redis cache driver |
||
| 29 | */ |
||
| 30 | public function __construct(ContainerInterface $container) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Retreive a value from the cache backend |
||
| 37 | * |
||
| 38 | * @param string $key |
||
| 39 | * @return mixed |
||
| 40 | */ |
||
| 41 | public function get($key) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Set a cached value |
||
| 50 | * |
||
| 51 | * @param string $key |
||
| 52 | * @param mixed $value |
||
| 53 | * @return CacheDriverInterface |
||
| 54 | */ |
||
| 55 | public function set($key, $value) |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Invalidate a cached value |
||
| 63 | * |
||
| 64 | * @param string $key |
||
| 65 | * @return CacheDriverInterface |
||
| 66 | */ |
||
| 67 | public function invalidate($key) |
||
| 72 | |||
| 73 | /** |
||
| 74 | * Clear the contents of the cache |
||
| 75 | * |
||
| 76 | * @return void |
||
| 77 | */ |
||
| 78 | public function invalidateAll() |
||
| 82 | } |
||
| 83 | // End of NullDriver.php |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.