Add cache timeout configuration property. Disabled by default

This commit is contained in:
jpoth
2019-03-04 16:36:29 +01:00
parent fc39fc9252
commit 980994812f
3 changed files with 11 additions and 0 deletions

View File

@@ -89,6 +89,10 @@ public class FhirServerConfigCommon {
Integer maxFetchSize = HapiProperties.getMaximumFetchSize();
retVal.setFetchSizeDefaultMaximum(maxFetchSize);
ourLog.info("Server configured to have a maximum fetch size of " + (maxFetchSize == Integer.MAX_VALUE? "'unlimited'": maxFetchSize));
Long reuseCachedSearchResultsMillis = HapiProperties.getReuseCachedSearchResultsMillis();
retVal.setReuseCachedSearchResultsForMillis(reuseCachedSearchResultsMillis );
ourLog.info("Server configured to cache search results for {} milliseconds", reuseCachedSearchResultsMillis);
// Subscriptions are enabled by channel type
if (HapiProperties.getSubscriptionRestHookEnabled()) {