public function getMyAccount($reset = false)
    {
        $cacheKey = sprintf('%s:my-account', $this->sessionId);
        if ($reset || !($info = $this->cache->fetch($cacheKey))) {
            $info = $this->getClient()->getAccountInfo($reset);
            $this->cache->save($cacheKey, $info, $this->config->get('api.users_ttl'));
        }

        return $info;
    }
public function getMyAccount($reset = false)
    {
        $cacheKey = sprintf('%s:my-account', $this->sessionId);
        if ($reset || !($info = $this->cache->fetch($cacheKey))) {
            $info = $this->getClient()->getAccountInfo($reset);
            $this->cache->save($cacheKey, $info, $this->config->get('api.users_ttl'));
        }

        return $info;
    }
public function getMyAccount ( $ reset = false ) { $ cacheKey = sprintf ( '%s:my-account' , $ this -> sessionId ) ; if ( $ reset || ! ( $ info = $ this -> cache -> fetch ( $ cacheKey ) ) ) { $ info = $ this -> getClient ( ) -> getAccountInfo ( $ reset ) ; $ this -> cache -> save ( $ cacheKey , $ info , $ this -> config -> get ( 'api.users_ttl' ) ) ; } return $ info ; }
Get the current user's account info.

@param bool $reset

@return array
An array containing at least 'username', 'id', 'mail', and
'display_name'.
Get the current user s account info .