semvec/pypi-packages huggingface dataset:
pmemoize 1.0
Memoizer with optional persistence to disk
Keywords: memoize


Yet another memoizer. I have been using this for a long time. It is simple but
useful. Features:

* Optional persistence to disk, using pickle to save the cache on exit.
* Configurable cache size. When it is reached a FIFO strategy is used to
  discard old entries.
* Stats tracking. Allows to see if memoization is useful for a certain function
  call.