Prado\Caching\TSqliteCache::setValue PHP Метод

setValue() защищенный Метод

This is the implementation of the method declared in the parent class.
protected setValue ( $key, $value, $expire ) : boolean
Результат boolean true if the value is successfully stored into cache, false otherwise
    protected function setValue($key, $value, $expire)
    {
        $expire = $expire <= 0 ? 0 : time() + $expire;
        $sql = 'REPLACE INTO ' . self::CACHE_TABLE . ' VALUES(\'' . $key . '\',\'' . sqlite_escape_string(serialize($value)) . '\',' . $expire . ')';
        return $this->_db->query($sql) !== false;
    }