Nexus 5 in Recovery mode not detected in ADB but another Nexus 5 gets detected I think I soft bricked my Nexus 5.

I was planning on wiping all data from Nexus 5 and installing Cyanogenmod 12.1 following the normal procedure in the Recovery Mode but the wiping got stuck at Wiping Cache for very long and I ended up rebooting the phone.

My phone has ever since been showing "Unable to mount /cache" error.

To fix everything I thought of installing a Stock ROM image from ADB but my phone does not get detected under the devices list when I run "adb devices"

I have installed the drivers and to test I connected another Nexus 5 which did appear in the list but my phone does not.

Any ideas on how I can proceed to fix this issue.

Any suggestions or help would be really appreciated.

Thanks.
I got it to work. The problem was with my USB cable. It intermittently disconnected my phone from the laptop and that ended up in windows thinking of my phone as an unrecognized device.

I manually installed the drivers for ADB Composite Device and then fired "adb devices" and it showed up.

Thanks Firelord for your help.

Really appreciated. :)