yii\mongodb\Cache::deleteValue PHP Method

deleteValue() protected method

Deletes a value with the specified key from cache This method should be implemented by child classes to delete the data from actual cache storage.
protected deleteValue ( string $key ) : boolean
$key string the key of the value to be deleted
return boolean if no error happens during deletion
    protected function deleteValue($key)
    {
        $this->db->getCollection($this->cacheCollection)->remove(['id' => $key]);
        return true;
    }