{ "info": { "author": "Diederik van der Boor", "author_email": "opensource@edoburu.nl", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.7", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": ".. image:: https://img.shields.io/travis/LabD/django-cache-results/master.svg?branch=master\n :target: http://travis-ci.org/LabD/django-cache-results\n.. image:: https://img.shields.io/pypi/v/LabD.svg\n :target: https://pypi.python.org/pypi/LabD/\n.. image:: https://img.shields.io/pypi/l/LabD.svg\n :target: https://pypi.python.org/pypi/LabD/\n.. image:: https://img.shields.io/codecov/c/github/LabD/django-cache-results/master.svg\n :target: https://codecov.io/github/LabD/django-cache-results?branch=master\n\ndjango-cache-results\n======================\n\nA microlibrary to ease your caching code.\n\nUsage:\n\n.. code-block:: python\n\n def key_function(arg1, arg2):\n return f\"prefix.{arg1}.{arg2}\"\n\n @cache_results(key_function=key_function)\n def some_function(arg1, arg2):\n return \"COMPLEX DATA\"\n\nNormal usage:\n\n.. code-block:: python\n\n value = some_function(1, 2)\n\nSkipping the cache:\n\n.. code-block:: python\n\n value = some_function.bypass_cache(1, 2)\n\nUpdating the cache:\n\n.. code-block:: python\n\n value = some_function.refresh_cache(1, 2)\n\nFetch the key for manual action:\n\n.. code-block:: python\n\n cache_key = some_function.cache_key(1, 2)\n\n\nInstallation\n============\n\nInstall the module from PyPI:\n\n.. code-block:: bash\n\n pip install django-cache-results\n\nAnd use it in your project:\n\n.. code-block:: python\n\n from cache_results import cache_results\n\n\nContributing\n------------\n\nWas there something you missed, or didn't like about this module?\nSend us a pull request!\n\n\n.. _documentation: http://django-cache-results.readthedocs.org/", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/LabD/django-cache-results/zipball/master", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/LabD/django-cache-results", "keywords": "", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "django-cache-results", "package_url": "https://pypi.org/project/django-cache-results/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-cache-results/", "project_urls": { "Download": "https://github.com/LabD/django-cache-results/zipball/master", "Homepage": "https://github.com/LabD/django-cache-results" }, "release_url": "https://pypi.org/project/django-cache-results/0.9/", "requires_dist": null, "requires_python": "", "summary": "A microlibrary to ease cache storage and retrieval", "version": "0.9" }, "last_serial": 2688573, "releases": { "0.9": [] }, "urls": [] }