Prado\Data\SqlMap\DataMapper\TSqlMapLruCache::set PHP Method

set() public method

The expire and dependency parameters are ignored.
public set ( $key, $value, $expire, $dependency = null )
    public function set($key, $value, $expire = 0, $dependency = null)
    {
        $this->_cache->add($key, $value);
        $this->_keyList->add($key);
        if ($this->_keyList->getCount() > $this->_cacheSize) {
            $oldestKey = $this->_keyList->removeAt(0);
            $this->_cache->remove($oldestKey);
        }
    }
TSqlMapLruCache