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 details)
Built Distribution
File details
Details for the file mo-cache-0.0.1.tar.gz
.
File metadata
- Download URL: mo-cache-0.0.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b7ad50316f5285a83a580b752e91e24934a43528b0194e1d9e01a192e725ca9 |
|
MD5 | 708d0dc8739417065678e3897b01e641 |
|
BLAKE2b-256 | 6d500d4977ff616e77f270df15c3c67b51a0c816fa88ae6f92cf23ad2cff2805 |
File details
Details for the file mo_cache-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: mo_cache-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 463382d4735dca48598adb084a446385a653b314e9d1f5fcc25a5df22079631b |
|
MD5 | 858ae27358567419e320acd7d05f8c12 |
|
BLAKE2b-256 | a97c412a908fd6a1ba98b71117e52bdf55d115a90fe999d142effb5d50ef9741 |