CADETProcess.dataStructure.diskcache.DillDisk.store

Contents

CADETProcess.dataStructure.diskcache.DillDisk.store#

DillDisk.store(value: Any, read: bool, key: Any = ('UNKNOWN',)) tuple[int, int, str | None, Any | memoryview][source]#

Convert value to fields size, mode, filename, and value for Cache table.

Parameters:
  • value – value to convert

  • read (bool) – True when value is file-like object

  • key – key for item (default UNKNOWN)

Returns:

(size, mode, filename, value) tuple for Cache table