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

set() public method

Stores a value identified by a key into cache.
public set ( $key, $value, $expire, $dependency = null )
    public function set($key, $value, $expire = 0, $dependency = null)
    {
        $this->getCache()->set($key, $value, $expire, $dependency);
        $keyList = $this->getKeyList();
        if (!$keyList->contains($key)) {
            $keyList->add($key);
            $this->setKeyList($keyList);
        }
    }