simplifid redis cache logic