Nette\Caching\Storages\MemcachedStorage::clean PHP Method

clean() public method

Removes items from the cache by conditions & garbage collector.
public clean ( array $conditions ) : void
$conditions array
return void
    public function clean(array $conditions)
    {
        if (!empty($conditions[Cache::ALL])) {
            $this->memcache->flush();
        } elseif ($this->journal) {
            foreach ($this->journal->clean($conditions) as $entry) {
                $this->memcache->delete($entry, 0);
            }
        }
    }