public function setCacheUser($iUserId, $aData = [])
    {
        $this->unsetCacheUser($iUserId);
        $oUser = $this->getById($iUserId);

        if (empty($oUser)) {
            return false;
        }

        $this->setCache(
            $this->prepareCacheKey($this->tableIdColumn, $oUser->id, $aData),
            $oUser
        );

        return true;
    }
public function setCacheUser($iUserId, $aData = [])
    {
        $this->unsetCacheUser($iUserId);
        $oUser = $this->getById($iUserId);

        if (empty($oUser)) {
            return false;
        }

        $this->setCache(
            $this->prepareCacheKey($this->tableIdColumn, $oUser->id, $aData),
            $oUser
        );

        return true;
    }
public function setCacheUser ( $ iUserId , $ aData = [ ] ) { $ this -> unsetCacheUser ( $ iUserId ) ; $ oUser = $ this -> getById ( $ iUserId ) ; if ( empty ( $ oUser ) ) { return false ; } $ this -> setCache ( $ this -> prepareCacheKey ( $ this -> tableIdColumn , $ oUser -> id , $ aData ) , $ oUser ) ; return true ; }
Saves a user object to the persistent cache

@param integer $iUserId The user ID to cache
@param array   $aData   The data array

@return boolean
Saves a user object to the persistent cache