CADETProcess.dataStructure.diskcache.DillDisk.fetch

Contents

CADETProcess.dataStructure.diskcache.DillDisk.fetch#

DillDisk.fetch(mode: int, filename: str, value: Any, read: bool) Any[source]#

Convert fields mode, filename, and value from Cache table to value.

Parameters:
  • mode (int) – value mode raw, binary, text, or pickle

  • filename (str) – filename of corresponding value

  • value – database value

  • read (bool) – when True, return an open file handle

Returns:

corresponding Python value

Raises:

IOError if the value cannot be read