Adding cache class.