Metadata-Version: 1.1
Name: gunicorn-cache
Version: 0.1.5
Summary: Cache worker for gunicorn
Home-page: https://github.com/youngking/gunicorn_cache
Author: Young King
Author-email: yanckin@gmail.com
License: ISCL
Description: ===============================
        Gunicorn Cache
        ===============================
        
        .. image:: https://img.shields.io/travis/youngking/gunicorn_cache.svg
                :target: https://travis-ci.org/youngking/gunicorn_cache
        
        .. image:: https://img.shields.io/pypi/v/gunicorn_cache.svg
                :target: https://pypi.python.org/pypi/gunicorn_cache
        
        
        Cache worker for gunicorn
        
        * Free software: ISC license
        
        
        Usage
        -------
        
        Add these settings in Gunicorn configuration file:
        
        ::
        
                cache_route = [
                    {'url': '^/custom_url1', 'methods':['GET', 'POST'], 'expire': 500},
                    {'url': '^/custom_url2', 'methods': ['POST'], 'expire': 500, 'prolong': False}
                ]
        
                cache_store = {'redis_url':'redis://127.0.0.1:6379/0'}
        
                worker_class = 'gunicorn_cache.RedisWorker'
        
        
        .. note::
        
           `prolong` will auto prolong cache's lifetime if visit again, default is True
        
        
        Then run the gunicorn.
        
        
        
        Advance Usage
        -------------
        
        Refresh cache
        ~~~~~~~~~~~~~
        
        ::
        
           curl -H "GUNICORN_CACHE_REFRESH:true" -X <method> <url>
        
        
        
        
        Features
        --------
        
        * TODO
        
        
        
        
        History
        -------
        
        0.1.5 (2016-01-07)
        ------------------
        * Improve refresh cache
        
        0.1.4 (2016-01-07)
        ------------------
        * Add refresh cache method
        
        0.1.3 (2015-12-23)
        -------------------
        * Fix a response duplicated set bug
        
        0.1.1 (2015-12-16)
        --------------------
        * Change configuration
        * add prolong feature
        
        0.1.0 (2015-12-15)
        ---------------------
        
        * First release on PyPI.
        
Keywords: gunicorn_cache
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: ISC License (ISCL)
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
