python3-klepto

Persistent caching to memory, disk or database
  https://github.com/uqfoundation/klepto
  0
  no reviews



Klepto extends Python's lru_cache to utilise different keymaps and alternate caching algorithms. This package also has archiving capabilities for longer-term storage. It uses a simple dictionary-style interface for all caches and archives, and all caches can be applied to any Python function as a decorator.

klepto is intended to be used for distributed and parallel computing, where the keymaps serialize the stored objects, and the caches and archives are intended to be read/write accessible from different threads and processes.

klepto is part of pathos, a Python framework for heterogeneous computing.