a simple cache lib support memory、file、redis
Project description
Mo-Cache
a simple cache lib support memory、file、redis
install
pip install Mo-Cache
demo
from mo_cache import cache_decorator
cache = cache_decorator('memory')
@cache
def foo(a, b):
return a + b
if __name__ == '__main__':
foo()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mo-cache-0.0.1.tar.gz
(4.2 kB
view hashes)