Classification of local rings based on multiplication in homology