arcache package¶
Submodules¶
Module contents¶
init
- class arcache.Cache(config_file: pathlib.Path = PosixPath('/home/docs/checkouts/readthedocs.org/user_builds/arcache/checkouts/latest/arcache/default.ini'), debug: bool = False)[source]¶
Bases:
object
This provides the LRU cache logic.
- cache_loaded = False¶
- clear(persistent: bool = False)[source]¶
This allows us to clear the cache contents, if persistent is set to True the saved cache file will also be removed.
- load_image()[source]¶
This will load an image file into data and cleanup the file instance.
Take careful note of the image open, load, update, and close operations used here. If this process is improperly altered it will result in significant memory leakage.