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.