Skip to content

mdmedley/cache_me_outside

Repository files navigation

PyPI Travis

Cache Me Outside

Cache Me Outside

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!

Version

v1.0

Installation

pip install cache_me_outside

Quickstart

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'

Development

Want to contribute? Great! Fork and submit a pull request!

Alternatives