add forEach to cache classes