MatthiasMullie\Scrapbook\Adapters\MemoryStore::evict PHP Method

evict() protected method

Least recently used cache values will be evicted from cache should it fill up too much.
protected evict ( )
    protected function evict()
    {
        while ($this->size > $this->limit && !empty($this->items)) {
            $item = array_shift($this->items);
            $this->size -= strlen($item[0]);
        }
    }