Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CCDB/include/CCDB/BasicCCDBManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,15 @@ class CCDBManagerInstance
}
}

/// Check if an object in cache is valid
bool isCachedObjectValid(std::string const& path, long timestamp)
{
if (!isCachingEnabled()) {
return false;
}
return mCache[path].isValid(timestamp);
}

/// check if checks of object validity before CCDB query is enabled
bool isLocalObjectValidityCheckingEnabled() const { return mCheckObjValidityEnabled; }

Expand Down