Commits
Tim Donohue authored and GitHub committed 70b456dbfc7 Merge
99 99 | * @param useCachedVersionIfAvailable If this is true, the request will only be sent if there's |
100 100 | * no valid cached version. Defaults to true |
101 101 | * @param reRequestOnStale Whether or not the request should automatically be re- |
102 102 | * requested after the response becomes stale |
103 103 | * @param linksToFollow List of {@link FollowLinkConfig} that indicate which |
104 104 | * {@link HALLink}s should be automatically resolved |
105 105 | */ |
106 106 | findAllByHref(href: string | Observable<string>, findListOptions: FindListOptions = {}, useCachedVersionIfAvailable = true, reRequestOnStale = true, linksToFollow: FollowLinkConfig<Root>[]): Observable<RemoteData<PaginatedList<Root>>> { |
107 107 | return this.dataService.findAllByHref(href, findListOptions, useCachedVersionIfAvailable, reRequestOnStale, linksToFollow); |
108 108 | } |
109 - | |
110 - | /** |
111 - | * Set to sale the root endpoint cache hit |
112 - | */ |
113 - | invalidateRootCache() { |
114 - | this.requestService.setStaleByHrefSubstring('server/api'); |
115 - | } |
116 109 | } |
117 110 | /* tslint:enable:max-classes-per-file */ |