roundcubemail/program/lib/Roundcube/rcube_session_redis.php
public function read($key)
    {
        if ($value = $this->redis->get($key)) {
            $arr = unserialize($value);
            $this->changed = $arr['changed'];
            $this->ip      = $arr['ip'];
            $this->vars    = $arr['vars'];
            $this->key     = $key;

            return !empty($this->vars) ? (string) $this->vars : '';
        }

        return '';
    }
public function read($key)
    {
        if ($value = $this->redis->get($key)) {
            $arr = unserialize($value);
            $this->changed = $arr['changed'];
            $this->ip      = $arr['ip'];
            $this->vars    = $arr['vars'];
            $this->key     = $key;

            return !empty($this->vars) ? (string) $this->vars : '';
        }

        return '';
    }
public function read ( $ key ) { if ( $ value = $ this -> redis -> get ( $ key ) ) { $ arr = unserialize ( $ value ) ; $ this -> changed = $ arr [ 'changed' ] ; $ this -> ip = $ arr [ 'ip' ] ; $ this -> vars = $ arr [ 'vars' ] ; $ this -> key = $ key ; return ! empty ( $ this -> vars ) ? ( string ) $ this -> vars : '' ; } return '' ; }
read data from redis store

@param $key
@return null
read data from redis store