title: How to access your AWS Redis cache instance using Java code?
body: <p>I want to use AWS Redis cache for my application package. I have created an Ec2 instance through which I am able to access my cache instance by SSH through console. But I want to access it through Java code. It would be helpful if anyone could direct me to some codebase where it's already in use.
  I read in its AWS documentation that you could only access it through an EC2 instance. For that I was using SSH tunnels to link my EC2 instance with the cache endpoints. I wanted to know is there an alternate way to do this without creating tunnels.</p>