for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* NullCache convenience object taken from symfony/cache. Adapted for
* PHP7.1 strict_types, original author Nicolas Grekas <[email protected]>.
*
* @see https://github.com/soluble-io/soluble-mediatools for the canonical repository
* @copyright Copyright (c) 2018-2019 Sébastien Vanvelthem. (https://github.com/belgattitude)
* @license https://github.com/soluble-io/soluble-mediatools/blob/master/LICENSE.md MIT
*/
namespace Soluble\MediaTools\Common\Cache;
use Psr\SimpleCache\CacheInterface;
class NullCache implements CacheInterface
{
* {@inheritdoc}
* @return mixed
public function get($key, $default = null)
return $default;
}
public function getMultiple($keys, $default = null)
foreach ($keys as $key) {
yield $key => $default;
public function has($key): bool
return false;
public function clear(): bool
return true;
public function delete($key): bool
public function deleteMultiple($keys): bool
public function set($key, $value, $ttl = null): bool
public function setMultiple($values, $ttl = null): bool