'Updates the cached value for the user\'s enrollment in the
given cache.'

@classmethod
def _update_enrollment(cls, cache, user_id, course_key, enrollment_state):

    cache[(user_id, course_key)] = enrollment_state
