pyslk.is_cached

Contents

pyslk.is_cached#

pyslk.is_cached(resource: str | int | Path | None = None, search_id: str | int | None = None) bool#

Check if whether file(s) is/are in HSM cache or not; returns True/False

Parameters:
  • resource (str or int or path-like) – a resource id or a resource path

  • search_id (int or str) – id of a search

Returns:

True if all files are in cache; False otherwise

Return type:

bool