servicex.cache.update_local_query_cache#
- servicex.cache.update_local_query_cache(analysis_cache: Optional[Path] = None)[source]#
Record analysis query hashes in an analysis cache.
If this routine is not called, the current directory is searched for an analysis cache file. If found, it participates in the query lookup.
After this routine is called, then when a query is made or looked up, an analysis cache file in the local directory is updated with new query request id’s.
This will allow one user to send a file to another user, along with the servicex backend in servicex.yaml allow them to fetch the same data. (or share on a similar machine).
- Args:
analysis_cache (Optional[Path], optional): The directory or filename of the analysis cache file. If None defaults to the file servicex_query_cache.json in the local directory. If only a directory is passed, then the servicex_query_cache.json in that directory is used. Defaults to None.