code: public static void configCacheSettings(String imFileDir, String docDir, String fileDir, String queryResultDir,
           String commandDir, String analyticsDir, SystemSetting setting) {
      importantFileDir = imFileDir;
      if (!importantFileDir.endsWith("/")) {
        importantFileDir += "/";
      }
  
      documentDir = docDir;
      if (!documentDir.endsWith("/")) {
        documentDir += "/";
      }
  
      fileCacheDir = fileDir;
      if (!fileCacheDir.endsWith("/")) {
        fileCacheDir += "/";
      }
  
      queryResultCacheDir = queryResultDir;
      if (!queryResultCacheDir.endsWith("/")) {
        queryResultCacheDir += "/";
      }
  
      commandCacheDir = commandDir;
      if (!commandCacheDir.endsWith("/")) {
        commandCacheDir += "/";
      }
  
      analyticsCacheDir = analyticsDir;
      if (!analyticsCacheDir.endsWith("/")) {
        analyticsCacheDir += "/";
      }
  
      makeSureCacheDirWorkable();
      defaultSetting = setting;
    }
docs: config local cache setting.
  @param imFileDir
  @param docDir
  @param fileDir
  @param queryResultDir
  @param commandDir
  @param analyticsDir
  @param setting