CADETProcess.dataStructure.diskcache.DillDisk

Contents

CADETProcess.dataStructure.diskcache.DillDisk#

class CADETProcess.dataStructure.diskcache.DillDisk(directory, min_file_size=0, pickle_protocol=0)[source]#

Cache key and value serialization for SQLite database and files.

Methods

fetch(mode, filename, value, read)

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

filename([key, value])

Return filename and full-path tuple for file storage.

get(key, raw)

Convert fields key and raw from Cache table to key.

hash(key)

Compute portable hash for key.

put(key)

Convert key to fields key and raw for Cache table.

remove(file_path)

Remove a file given by file_path.

store(value, read[, key])

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