vox-common/hubclient.js
function saveUserProfileInCache(userProfile) {
    var old = userProfileCache.peek(userProfile.nick);
    if (old && old.updatedAt > userProfile.updatedAt) {
      return;
    }
    userProfileCache.set(userProfile.nick, userProfile);
  }
function saveUserProfileInCache(userProfile) {
    var old = userProfileCache.peek(userProfile.nick);
    if (old && old.updatedAt > userProfile.updatedAt) {
      return;
    }
    userProfileCache.set(userProfile.nick, userProfile);
  }
function saveUserProfileInCache ( userProfile ) { var old = userProfileCache . peek ( userProfile . nick ) ; if ( old && old . updatedAt > userProfile . updatedAt ) { return ; } userProfileCache . set ( userProfile . nick , userProfile ) ; }
Caches the UserProfile, but only if it is newer than the existing cached
version.
Caches the UserProfile but only if it is newer than the existing cached version .