A few options come to mind:
Ok, how will i connect to Redis using CLI, will i get host name details for redis service?
You can, yes. If it's bound to your app you can run `cf env` and see the credentials in VCAP_SERVICES, or you can create a service key and use the credentials bound to your service key.