Add cache class.