/**
* @param User $user
*/
public function remove(User $user)
{
$this->redisClient->transaction(function (MultiExec $tx) use($user) {
$id = $user->getId();
$tx->hdel(self::USER_HASH_STORE, $id);
if (!empty($user->getGithubId())) {
$tx->hdel('github_' . self::USER_HASH_STORE, $user->getGithubId());
}
if (!empty($user->getGoogleId())) {
$tx->hdel('google_' . self::USER_HASH_STORE, $user->getGoogleId());
}
if (!empty($user->getBitbucketId())) {
$tx->hdel('bitbucket_' . self::USER_HASH_STORE, $user->getBitbucketId());
}
});
}