src/Base/AnnotationsReader.php
protected function setToCache($key, $value = null)
    {
        if (!isset($value)) {
            unset($this->_cache[$value]);
            return;
        }
        $this->_cache[$key] = $value;
    }
protected function setToCache($key, $value = null)
    {
        if (!isset($value)) {
            unset($this->_cache[$value]);
            return;
        }
        $this->_cache[$key] = $value;
    }
Set data to cache
@param string $key
@param mixed|null $value