wrench::XRootD::Cache
-
class Cache
A class that implements the XRootD cache.
Public Functions
Add a file to the cache.
- Parameters:
file – The file to add to the cache
locations – The locations to add to the cache
Add a file to the cache.
- Parameters:
file – The file to add to the cache
location – The location to add to the cache
get all valid cached copies.
- Parameters:
file – The file to check the cache for
- Returns:
the set of valid cached copies. (empty set if not found)
Check the cache for a file.
- Parameters:
file – The file to check the cache for
- Returns:
true if the file is cached and if timestamp (not implemented) is valid, false otherwise
get all valid cached copies.
- Parameters:
file – The file to check the cache for
- Returns:
the set of valid cached copies. (empty set if not found)
remove all copies of a file from the cache
- Parameters:
file – The file to check the cache for
Public Members
-
double maxCacheTime = std::numeric_limits<double>::infinity()
The maximum time an unupdated entry can remain in the cache.