public S setValidation(boolean validation) {
        this.validation = validation;
        return castThis();
    }
Sets cache.

@param cache the cache
@return the cache
core/api/src/main/java/com/alipay/sofa/rpc/config/AbstractInterfaceConfig.java