* @link http://getkirby.com * @copyright Bastian Allgeier * @license http://www.opensource.org/licenses/mit-license.php MIT License */ class Mock extends Driver { /** * Write an item to the cache for a given number of minutes. * * * // Put an item in the cache for 15 minutes * Cache::set('value', 'my value', 15); * * * @param string $key * @param mixed $value * @param int $minutes * @return void */ public function set($key, $value, $minutes = null) { return true; } /** * Retrieve an item from the cache. * * @param string $key * @return mixed */ public function retrieve($key) { return null; } /** * Checks if the current key exists in cache * * @param string $key * @return boolean */ public function exists($key) { return null; } /** * Remove an item from the cache * * @param string $key * @return boolean */ public function remove($key) { return true; } /** * Flush the entire cache directory * * @return boolean */ public function flush() { return true; } }