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

lru() protected method

This cache uses least recently used algorithm. This is to be called with the key to be marked as just used.
protected lru ( $key )
    protected function lru($key)
    {
        // move key that has just been used to last position in the array
        $value = $this->items[$key];
        unset($this->items[$key]);
        $this->items[$key] = $value;
    }