add responseMsToLive to requests

This commit is contained in:
Art Lowel
2018-09-28 16:11:22 +02:00
parent 5912c88791
commit b308df201d
5 changed files with 15 additions and 7 deletions

View File

@@ -126,7 +126,7 @@ export abstract class BaseResponseParsingService {
if (hasNoValue(co) || hasNoValue(co.self)) {
throw new Error('The server returned an invalid object');
}
this.objectCache.add(co, this.EnvConfig.cache.msToLive, requestHref);
this.objectCache.add(co, this.EnvConfig.cache.msToLive.default, requestHref);
}
processPageInfo(payload: any): PageInfo {