__init__ constructor

On this page

init

Initializes a new FileCache instance.

def __init__(self, cache_path):
    ...
Parameter Type Description
cache_path str Relative or absolute path where document cache will be stored.
Raises Description
ValueError If cache_path is None.

init

Initializes a new instance of the FileCache class.

def __init__(self, cache_path, cache_sub_folder):
    ...
Parameter Type Description
cache_path str Relative or absolute path where document cache will be stored.
cache_sub_folder str The sub-folder to append to cache_path.
Raises Description
ValueError If cache_sub_folder is None.

See Also

On this page