for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Phossa Project
*
* PHP version 5.4
* @category Library
* @package Phossa2\Cache
* @copyright Copyright (c) 2016 phossa.com
* @license http://mit-license.org/ MIT License
* @link http://www.phossa.com/
*/
/*# declare(strict_types=1); */
namespace Phossa2\Cache\Driver;
use Psr\Cache\CacheItemInterface;
* NullDriver
* @author Hong Zhang <[email protected]>
* @see DriverAbstract
* @version 2.0.0
* @since 2.0.0 added
class NullDriver extends DriverAbstract
{
* {@inheritDoc}
public function save(CacheItemInterface $item)/*# : bool */
return true;
}
* {inheritDoc}
protected function driverHas(/*# string */ $key)/*# : array */
return [];
protected function driverGet(/*# string */ $key)
return null;
protected function driverDelete(CacheItemInterface $item)/*# : bool */
protected function driverClear()/*# : bool */