File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
olp-cpp-sdk-dataservice-read/src/repositories Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 3636namespace {
3737constexpr auto kLogTag = " CatalogCacheRepository" ;
3838
39- // Currently, we expire the catalog version after 5 minutes. Later we plan to
40- // give the user the control when to expire it.
4139constexpr auto kChronoSecondsMax = std::chrono::seconds::max();
4240constexpr auto kTimetMax = std::numeric_limits<time_t >::max();
4341
Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ CatalogResponse CatalogRepository::GetCatalog(
5555 const auto fetch_options = request.GetFetchOption ();
5656 const auto catalog_str = catalog_.ToCatalogHRNString ();
5757
58- repository::CatalogCacheRepository repository{
59- catalog_, settings_.cache , settings_.default_cache_expiration } ;
58+ repository::CatalogCacheRepository repository (
59+ catalog_, settings_.cache , settings_.default_cache_expiration ) ;
6060
6161 if (fetch_options != OnlineOnly && fetch_options != CacheWithUpdate) {
6262 auto cached = repository.Get ();
@@ -106,7 +106,8 @@ CatalogResponse CatalogRepository::GetCatalog(
106106
107107CatalogVersionResponse CatalogRepository::GetLatestVersion (
108108 const CatalogVersionRequest& request, client::CancellationContext context) {
109- repository::CatalogCacheRepository repository (catalog_, settings_.cache );
109+ repository::CatalogCacheRepository repository (
110+ catalog_, settings_.cache , settings_.default_cache_expiration );
110111
111112 const auto fetch_option = request.GetFetchOption ();
112113 // in case if get version online was never called and version was not found in
You can’t perform that action at this time.
0 commit comments