What or how does lime help with body decay?

I recall one of those detective comic books from many many moons ago (EC, mid-60’s?); the perp buried the corpse with lime. When they caught him, the detective remarked that contrary to popular belief, lime is a preservative for corpses. I assume if it stops bacterial decay for quite a while, that also means it takes longer for the corpse to decay.