src/NcrCache.php
private function pruneNodeCache(): void
    {
        if ($this->maxItems > 0 && count($this->nodes) > $this->maxItems) {
            $this->nodes = array_slice($this->nodes, (int)($this->maxItems * 0.2), null, true);
        }
    }
private function pruneNodeCache(): void
    {
        if ($this->maxItems > 0 && count($this->nodes) > $this->maxItems) {
            $this->nodes = array_slice($this->nodes, (int)($this->maxItems * 0.2), null, true);
        }
    }
private function pruneNodeCache ( ) : void { if ( $ this -> maxItems > 0 && count ( $ this -> nodes ) > $ this -> maxItems ) { $ this -> nodes = array_slice ( $ this -> nodes , ( int ) ( $ this -> maxItems * 0.2 ) , null , true ) ; } }
Prunes node cache by removing 20% of the cache if it is full.
Prunes node cache by removing 20% of the cache if it is full .