public function addInherit($roleName, $roleToInherit)
{
$exists = $this->redis->hGet('roles', $roleName);
if (!$exists) {
throw new Exception(sprintf("Role '%s' does not exist in the role list", $roleName));
}
if ($roleToInherit instanceof Role) {
$roleToInherit = $roleToInherit->getName();
}
$this->redis->sAdd("rolesInherits:{$roleName}", $roleToInherit);
}