CADETProcess.dataStructure.diskcache.DillDisk.filename

CADETProcess.dataStructure.diskcache.DillDisk.filename#

DillDisk.filename(key=('UNKNOWN',), value=('UNKNOWN',))#

Return filename and full-path tuple for file storage.

Filename will be a randomly generated 28 character hexadecimal string with “.val” suffixed. Two levels of sub-directories will be used to reduce the size of directories. On older filesystems, lookups in directories with many files may be slow.

The default implementation ignores the key and value parameters.

In some scenarios, for example Cache.push, the key or value may not be known when the item is stored in the cache.

Parameters:
  • key – key for item (default UNKNOWN)

  • value – value for item (default UNKNOWN)