项目作者: mdmedley

项目描述 :
Cache me outside!
高级语言: Python
项目地址: git://github.com/mdmedley/cache_me_outside.git
创建时间: 2017-04-01T20:53:14Z
项目社区:https://github.com/mdmedley/cache_me_outside

开源协议:MIT License

下载


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

  1. pip install cache_me_outside

Quickstart

  1. from cache_me_outside import cache_me_outside
  2. # Just decorate the function you want to implement a cache for and use just like lru_cache
  3. @cache_me_outside(maxsize=20)
  4. def some_expensive_io_function():
  5. return 'Some string'

Development

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

Alternatives