Add a mock cache class for UTing handlers.