Nette\Caching\Storages\NewMemcachedStorage::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->memcached->flush();
        } elseif ($this->journal) {
            foreach ($this->journal->clean($conditions) as $entry) {
                $this->memcached->delete($entry, 0);
            }
        }
    }