{ "info": { "author": "Diego Garcia", "author_email": "drgarcia1986@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Natural Language :: Russian", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Testing", "Topic :: Utilities" ], "description": "Muffin-Cache\r\n############\r\n\r\n.. _description:\r\n\r\nMuffin-Cache -- A simple cache tools for muffin_ framework.\r\n\r\n.. _badges:\r\n\r\n.. image:: http://img.shields.io/travis/drgarcia1986/muffin-cache.svg?style=flat-square\r\n :target: http://travis-ci.org/drgarcia1986/muffin-cache\r\n :alt: Build Status\r\n\r\n.. image:: http://img.shields.io/coveralls/drgarcia1986/muffin-cache.svg?style=flat-square\r\n :target: https://coveralls.io/r/drgarcia1986/muffin-cache\r\n :alt: Coverals\r\n\r\n.. _requirements:\r\n\r\nRequirements\r\n=============\r\n\r\n- python >= 3.4\r\n- muffin >= 0.5.5\r\n- muffin-redis >= 0.3.0\r\n\r\n.. _installation:\r\n\r\nInstallation\r\n=============\r\n\r\n**Muffin-Cache** should be installed using pip: ::\r\n\r\n pip install muffin-cache\r\n\r\n.. _usage:\r\n\r\nUsage\r\n=====\r\n\r\nAdd Muffin-Redis_ and Muffin-Cache to muffin plugin list:\r\n\r\n.. code-block:: python\r\n\r\n import muffin\r\n\r\n\r\n app = muffin.Application(\r\n 'example',\r\n\r\n PLUGINS=(\r\n 'muffin_redis',\r\n 'muffin_cache',\r\n )\r\n )\r\n\r\nAnd use *CacheHandler* for class based views: \r\n\r\n.. code-block:: python\r\n\r\n from muffin_cache import CacheHandler \r\n \r\n @app.register('/cached')\r\n class Example(CacheHandler):\r\n\r\n def get(self, request):\r\n return 'text'\r\n \r\nOr *cache_view* for functions based views:\r\n\r\n.. code-block:: python\r\n \r\n from muffin_cache import cache_view\r\n\r\n @app.register('/cached')\r\n @cache_view\r\n def example(request):\r\n return 'text'\r\n\r\nThe cache lifetime is determined by *CACHE_LIFETIME* setting of muffin application.\r\n(the default lifetime is 30 minutes).\r\n\r\n.. _bugtracker:\r\n\r\nBug tracker\r\n===========\r\n\r\nIf you have any suggestions, bug reports or\r\nannoyances please report them to the issue tracker\r\nat https://github.com/drgarcia1986/muffin-cache/issues\r\n\r\n.. _contributing:\r\n\r\nContributing\r\n============\r\n\r\nDevelopment of Muffin-Cache happens at: https://github.com/drgarcia1986/muffin-cache\r\n\r\n\r\nContributors\r\n=============\r\n\r\n* drgarcia1986_ (Diego Garcia)\r\n\r\n.. _license:\r\n\r\nLicense\r\n=======\r\n\r\nLicensed under a `MIT license`_.\r\n\r\n.. _links:\r\n\r\n\r\n.. _muffin: https://github.com/klen/muffin\r\n.. _muffin-redis: https://github.com/klen/muffin-redis\r\n.. _drgarcia1986: https://github.com/drgarcia1986\r\n.. _MIT license: http://opensource.org/licenses/MIT", "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/drgarcia1986/muffin-cache", "keywords": "asyncio,aiohttp,muffin,redis,cache", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "muffin-cache", "package_url": "https://pypi.org/project/muffin-cache/", "platform": "Any", "project_url": "https://pypi.org/project/muffin-cache/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/drgarcia1986/muffin-cache" }, "release_url": "https://pypi.org/project/muffin-cache/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "UNKNOWN", "version": "0.0.1" }, "last_serial": 1902009, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "03eb8a199edecc61ca93060be8cd5eb2", "sha256": "8074c2e74820da82afdeb3bdef54e83e0c0d507161808873fbb8906096d97283" }, "downloads": -1, "filename": "muffin-cache-0.0.1.tar.gz", "has_sig": false, "md5_digest": "03eb8a199edecc61ca93060be8cd5eb2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4468, "upload_time": "2016-01-13T03:17:55", "url": "https://files.pythonhosted.org/packages/be/da/55685f98e31a5ebc0428dcca6fca6336fb7476bcd43eb34d049ab2080b6c/muffin-cache-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "03eb8a199edecc61ca93060be8cd5eb2", "sha256": "8074c2e74820da82afdeb3bdef54e83e0c0d507161808873fbb8906096d97283" }, "downloads": -1, "filename": "muffin-cache-0.0.1.tar.gz", "has_sig": false, "md5_digest": "03eb8a199edecc61ca93060be8cd5eb2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4468, "upload_time": "2016-01-13T03:17:55", "url": "https://files.pythonhosted.org/packages/be/da/55685f98e31a5ebc0428dcca6fca6336fb7476bcd43eb34d049ab2080b6c/muffin-cache-0.0.1.tar.gz" } ] }