private const TAG_FOLDER = 'tags';
public function __construct(string
$namespace = '', int
$defaultLifetime = 0, string
$directory = null, MarshallerInterface
$marshaller = null
) { $this->marshaller =
new TagAwareMarshaller($marshaller);
parent::
__construct('',
$defaultLifetime);
$this->
init($namespace,
$directory);
} public function prune(): bool
{ $ok =
$this->
doPrune();
set_error_handler(static function D
) {});
$chars = '+-ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
try { foreach ($this->
scanHashDir($this->directory.self::TAG_FOLDER.\DIRECTORY_SEPARATOR
) as $dir) { $dir .= \DIRECTORY_SEPARATOR;
$keepDir = false;
for ($i = 0;
$i < 38; ++
$i) { if (!
is_dir($dir.
$chars[$i])) { continue;
}