cache class