cache class resolving