Metadata-Version: 2.1
Name: mcache
Version: 1.0.0
Summary: Async ready Multi Caching Library.
Home-page: https://github.com/marirs/mcache/
Author: Sriram G
Author-email: marirs@gmail.com
License: MIT
Description: Async ready Multi Cache Library
        =================================
        
        [![codecov](https://codecov.io/gh/marirs/mcache/branch/master/graph/badge.svg)](https://codecov.io/gh/marirs/mcache)
        [![GitHub license](https://img.shields.io/github/license/marirs/mcache)](https://github.com/marirs/mcache/blob/master/LICENSE)
        ![PyPI - Status](https://img.shields.io/pypi/status/mcache)
        
        A python package to use a async ready decorator for caching outputs.
        
        #### Currently supported cache stores:
        - Filecache
        - Memcached
        
        #### Requirements
        - memcached 
          
        On osx
        ```bash
        brew install memcached
        brew services start memcached
        ```
          
        On Linux
        ```bash
        sudo apt-get -y install memcached libmemcached-tools
        sudo systemctl enable memcached
        sudo systemctl start memcached
        ```
        
        #### Installing the package
        
        ```bash
        pip install mcache
        ```
        
        #### Using it in your application
        
        ```python
        from mcache import filecache, DAY
        
        @filecache(lifetime=DAY*2)
        def add(x):
            return x+4 
        
        print(add(10))
        ```
        
        Async
        ```python
        import asyncio
        from mcache import filecache, DAY
        
        @filecache(lifetime=DAY*2)
        async def add(x):
            return x+4 
        
        print(asyncio.run(add(10)))
        ```
        
        ---
        Sriram
Keywords: Python 3,caching,memcache,filecache,redis,async,asyncio,cache
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Internet
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.6
Description-Content-Type: text/markdown
