您当前的位置: 首页 >  Python

彭世瑜

暂无认证

  • 1浏览

    0关注

    2791博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Python:缓存库mo-cache支持内存、文件、Redis

彭世瑜 发布时间:2021-01-16 10:42:14 ,浏览量:1

Mo-Cache

Github: https://github.com/mouday/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()
关注
打赏
1665367115
查看更多评论
立即登录/注册

微信扫码登录

0.3832s