It provides cache mechanism to ruby methods at class as well as instance level.