for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of Blitz PHP framework.
*
* (c) 2022 Dimitri Sitchet Tomkeu <[email protected]>
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace BlitzPHP\Cache\Handlers;
use DateInterval;
* Moteur de cache nul, toutes les opérations semblent fonctionner, mais ne font rien.
* Ceci est utilisé en interne lorsque Cache::disable() a été appelé.
class Dummy extends BaseHandler
{
* {@inheritDoc}
public function isSupported(): bool
return true;
}
public function init(array $config = []): bool
public function set(string $key, mixed $value, null|DateInterval|int $ttl = null): bool
public function setMultiple(iterable $values, null|DateInterval|int $ttl = null): bool
public function get(string $key, mixed $default = null): mixed
return $default;
public function getMultiple(iterable $keys, mixed $default = null): iterable
return [];
public function increment(string $key, int $offset = 1)
return 1;
public function decrement(string $key, int $offset = 1)
return 0;
public function delete(string $key): bool
public function deleteMultiple(iterable $keys): bool
public function clear(): bool
public function clearGroup(string $group): bool