Metadata-Version: 2.1
Name: tinycache
Version: 0.1.3
Summary: tinycache a python modules base on local file for any python data struct
Home-page: https://github.com/jamesqin-cn/tinycache
Author: jamesqin
Author-email: jamesqin@vip.qq.com
License: MIT
Description: # Tiny Cache
        
        ## What is TinyCache?
        tinycache is a python modules base on local file for any python data struct
        
        ## Programming Language
        - python 2.7
        - python 3.7
        
        ## Install
        ```
        pip install tinycache 
        ```
        
        ## Quick Start
        use python decorators syntax to wrap the call target
        ```
        from tinycache import WithCache
        
        @WithCache(5)
        def Add(a, b):
            return a + b
        
        class Foo():
            @WithCache(5)
            def Bar(self, a, b):
                return a - b
        ```
        
        ## Cache File Format
        cache file is json format, with filename look like './cache/`<md5_of_key_str>`'
        ```
        {
            "created_at": 1581652043.872242,
            "expired_at": 1581652048.872242,
            "key_str": "Add(&<class 'int'>=1&<class 'int'>=2)",
            "key": "9d0aa1c9634aa575696710c7dfb9f018",
            "value": 3
        }
        ```
Platform: any
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Topic :: Utilities
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
