i'm not sure you should house them together.
Cardinal shrimps needs ph of 8.5 and temp of 80, rili can live in those parameters but wont breed as readily.
cardinal shrimps are not that hard if you have the right setup for them, heater to maintain 80 degrees, RO/distilled water remineralized with sulawesi 8.5, crush croal mix into substrate. all done.
But i am not sure if your rili will like those parameters..