roundcubemail/program/lib/Roundcube/rcube_session_memcache.php
public function update($key, $newvars, $oldvars)
    {
        $ts = microtime(true);

        if ($newvars !== $oldvars || $ts - $this->changed > $this->lifetime / 3) {
            $data   = serialize(array('changed' => time(), 'ip' => $this->ip, 'vars' => $newvars));
            $result = $this->memcache->set($key, $data, MEMCACHE_COMPRESSED, $this->lifetime + 60);

            if ($this->debug) {
                $this->debug('set', $key, $data, $result);
            }

            return $result;
        }

        return true;
    }
public function update($key, $newvars, $oldvars)
    {
        $ts = microtime(true);

        if ($newvars !== $oldvars || $ts - $this->changed > $this->lifetime / 3) {
            $data   = serialize(array('changed' => time(), 'ip' => $this->ip, 'vars' => $newvars));
            $result = $this->memcache->set($key, $data, MEMCACHE_COMPRESSED, $this->lifetime + 60);

            if ($this->debug) {
                $this->debug('set', $key, $data, $result);
            }

            return $result;
        }

        return true;
    }
public function update ( $ key , $ newvars , $ oldvars ) { $ ts = microtime ( true ) ; if ( $ newvars !== $ oldvars || $ ts - $ this -> changed > $ this -> lifetime / 3 ) { $ data = serialize ( array ( 'changed' => time ( ) , 'ip' => $ this -> ip , 'vars' => $ newvars ) ) ; $ result = $ this -> memcache -> set ( $ key , $ data , MEMCACHE_COMPRESSED , $ this -> lifetime + 60 ) ; if ( $ this -> debug ) { $ this -> debug ( 'set' , $ key , $ data , $ result ) ; } return $ result ; } return true ; }
Update memcache session data

@param $key
@param $newvars
@param $oldvars

@return bool
Update memcache session data