Title: #250: cache_req: Use ternary operator instead of bool+switch
@lslebodn, I've chosen the switch just to make the code cleaner, as I do believe the
cases are easier to read than the ternary operator.
However, if you think it's easier to read using the ternary operator, I won't
oppose to it.
See the full comment at https://github.com/SSSD/sssd/pull/250#issuecomment-297653907