cache
full name: tenpy.tools.cache
parent module:
tenpy.tools
type: module
Classes
|
Subclass of |
|
Cache with dict-like interface. |
|
Subclass of |
|
Subclass of |
|
A container interface for saving data to disk. |
|
Wrapper around a |
Module description
Tools to temporarily cache parts of data to disk in order to free RAM.
The DictCache
provides a dictionary-like interface to handle saving some data to disk.
While the DictCache
itself actually keeps everything in memory,
the subclasses store the provided data to disk for future lookup in order to free memory.
Any cache should be handled like a file object that needs to be closed after use;
this is easiest done through a with
statement, see the example in DictCache
.