Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
rhbz1222730 - add options to use cache in java client
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed May 20, 2015
1 parent cdfdd2a commit 704025f
Showing 1 changed file with 14 additions and 0 deletions.
Expand Up @@ -169,4 +169,18 @@ public boolean isContinueAfterError() {
public boolean isAuthRequired() {
return false;
}

@Option(name = "--use-cache", usage = "Whether to use an Entity cache when fetching documents.\n" +
"When using the cache, documents that have been retrieved previously and have not changed since then will not be retrieved again.\n" +
"Default is " + DEFAULT_USE_CACHE + ".")
public void setUseCache(boolean useCache) {
this.useCache = useCache;
}

@Option(name = "--purge-cache", usage = "Whether to purge the cache before performing the pull operation.\n" +
"This means that all documents will be fetched from the server anew.\n" +
"Default is " + DEFAULT_PURGE_CACHE + ".")
public void setPurgeCache(boolean purgeCache) {
this.purgeCache = purgeCache;
}
}

0 comments on commit 704025f

Please sign in to comment.