Skip to content

mverleg/py_file_cache_decorator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python file cache decorator

A simple decorator that caches function return values to memory and to files, so that they are fast preserved between runs.

@cache_to_file
def myfun(a, b):
    return a + b

print(myfun(8, 5))
print(myfun(8, 5))

There are various options, but no documentation yet.

Usage & contributions

Revised BSD License; at your own risk, you can mostly do whatever you want with this code, just don't use my name for promotion and do keep the license file.

About

A fairly simple decorator to cache function return values to memory and files for a specific time.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages