The chemical reactions and pathways involving S-adenosylhomocysteine; the L-enantiomer is formed from S-adenosylmethionine and is a strong inhibitor of S-adenosylmethionine-mediated methylation reactions. It can be cleaved to form adenosine and homocysteine.