for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Yiisoft\Cache\Tests;
use Psr\SimpleCache\CacheInterface;
/**
* FalseCache does not cache anything reporting failure for all methods calls.
*/
final class FalseCache implements CacheInterface
{
public function get($key, $default = null)
return null;
}
public function set($key, $value, $ttl = null): bool
return false;
public function delete($key): bool
public function clear(): bool
public function getMultiple($keys, $default = null): iterable
return [];
public function setMultiple($values, $ttl = null): bool
public function deleteMultiple($keys): bool
public function has($key): bool