Settings

Theme

Show HN: FunctionCacher, a Python cache-to-disk utility

gitlab.com

6 points by itsphilos 2 years ago · 2 comments · 1 min read

Reader

The FunctionCacher Python utility provides a way to cache the result of a (computation- or IO-heavy) function call to a location on the filesystem, ideally onto a ramdisk/tmpfs. This allows caches to exceed the lifetime of the program, which is useful for rapid-prototyping (& rapid-crashing) scripts. Caches are generated based function name, parameters, and code. MIT Licence.

ppedra 2 years ago

I think Joblib Memory does the trick even better. https://joblib.readthedocs.io/en/latest/auto_examples/memory...

antman 2 years ago

A comparison or goals page for the project would help. Diskcache module has a similar functionality and a comparison page with different modules.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection