Prado\Caching\TMemCache::setValue PHP Method

setValue() protected method

This is the implementation of the method declared in the parent class.
protected setValue ( $key, $value, $expire ) : boolean
return boolean true if the value is successfully stored into cache, false otherwise
    protected function setValue($key, $value, $expire)
    {
        if ($this->_useMemcached) {
            return $this->_cache->set($key, $value, $expire);
        } else {
            return $this->_cache->set($key, $value, 0, $expire);
        }
    }