protected function setCache($key, $value) {
        $this->logger->debug('LRUcache: set to key' . $key);
        $this->cache[$key] = $value;
        if (count($this->cache) > $this->cacheSize) {
            array_shift($this->cache);
        }
    }