{ "info": { "author": "Young King", "author_email": "yanckin@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: ISC License (ISCL)", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "===============================\nGunicorn Cache\n===============================\n\n.. image:: https://img.shields.io/travis/youngking/gunicorn_cache.svg\n :target: https://travis-ci.org/youngking/gunicorn_cache\n\n.. image:: https://img.shields.io/pypi/v/gunicorn_cache.svg\n :target: https://pypi.python.org/pypi/gunicorn_cache\n\n\nCache worker for gunicorn\n\n* Free software: ISC license\n\n\nUsage\n-------\n\nAdd these settings in Gunicorn configuration file:\n\n::\n\n cache_route = [\n {'url': '^/custom_url1', 'methods':['GET', 'POST'], 'expire': 500},\n {'url': '^/custom_url2', 'methods': ['POST'], 'expire': 500, 'prolong': False}\n ]\n\n cache_store = {'redis_url':'redis://127.0.0.1:6379/0'}\n\n worker_class = 'gunicorn_cache.RedisWorker'\n\n\n.. note::\n\n `prolong` will auto prolong cache's lifetime if visit again, default is True\n\n\nThen run the gunicorn.\n\n\n\nAdvance Usage\n-------------\n\nRefresh cache\n~~~~~~~~~~~~~\n\n::\n\n curl -H \"GUNICORN_CACHE_REFRESH:true\" -X \n\n\n\n\nFeatures\n--------\n\n* TODO\n\n\n\n\nHistory\n-------\n\n0.1.5 (2016-01-07)\n------------------\n* Improve refresh cache\n\n0.1.4 (2016-01-07)\n------------------\n* Add refresh cache method\n\n0.1.3 (2015-12-23)\n-------------------\n* Fix a response duplicated set bug\n\n0.1.1 (2015-12-16)\n--------------------\n* Change configuration\n* add prolong feature\n\n0.1.0 (2015-12-15)\n---------------------\n\n* First release on PyPI.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/youngking/gunicorn_cache", "keywords": "gunicorn_cache", "license": "ISCL", "maintainer": null, "maintainer_email": null, "name": "gunicorn_cache", "package_url": "https://pypi.org/project/gunicorn_cache/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/gunicorn_cache/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/youngking/gunicorn_cache" }, "release_url": "https://pypi.org/project/gunicorn_cache/0.1.5/", "requires_dist": null, "requires_python": null, "summary": "Cache worker for gunicorn", "version": "0.1.5" }, "last_serial": 2197172, "releases": { "0.1.5": [ { "comment_text": "", "digests": { "md5": "1da3f6905521a738e0bde5fbc8acfa30", "sha256": "378803e35a134d71800c89473b2799584d3e7ca598de7278c6d27b07487de740" }, "downloads": -1, "filename": "gunicorn_cache-0.1.5.tar.gz", "has_sig": false, "md5_digest": "1da3f6905521a738e0bde5fbc8acfa30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13267, "upload_time": "2016-07-01T02:51:02", "url": "https://files.pythonhosted.org/packages/cd/27/c8a421cb961c8097cd526161e946418f63b74198dd674056e4fafc57a841/gunicorn_cache-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1da3f6905521a738e0bde5fbc8acfa30", "sha256": "378803e35a134d71800c89473b2799584d3e7ca598de7278c6d27b07487de740" }, "downloads": -1, "filename": "gunicorn_cache-0.1.5.tar.gz", "has_sig": false, "md5_digest": "1da3f6905521a738e0bde5fbc8acfa30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13267, "upload_time": "2016-07-01T02:51:02", "url": "https://files.pythonhosted.org/packages/cd/27/c8a421cb961c8097cd526161e946418f63b74198dd674056e4fafc57a841/gunicorn_cache-0.1.5.tar.gz" } ] }