So you've got an annoyingly slow method in your script or library that you want make
faster by caching? Well cache_me_outside
is a fun module that will allow you to do just dat!
v1.0
pip install cache_me_outside
from cache_me_outside import cache_me_outside
# Just decorate the function you want to implement a cache for and use just like lru_cache
@cache_me_outside(maxsize=20)
def some_expensive_io_function():
return 'Some string'
Want to contribute? Great! Fork and submit a pull request!