set cache parameter.