{"id":18930091,"url":"https://github.com/labd/django-cache-results","last_synced_at":"2026-04-15T12:36:05.836Z","repository":{"id":57419182,"uuid":"84187664","full_name":"labd/django-cache-results","owner":"labd","description":"A microlibrary to ease your caching code.","archived":false,"fork":false,"pushed_at":"2017-03-07T18:52:57.000Z","size":12,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-30T15:48:41.180Z","etag":null,"topics":["cache","decorator","django"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/labd.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-07T10:43:35.000Z","updated_at":"2018-08-30T11:39:45.000Z","dependencies_parsed_at":"2022-09-07T11:41:41.927Z","dependency_job_id":null,"html_url":"https://github.com/labd/django-cache-results","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/labd/django-cache-results","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fdjango-cache-results","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fdjango-cache-results/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fdjango-cache-results/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fdjango-cache-results/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/labd","download_url":"https://codeload.github.com/labd/django-cache-results/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fdjango-cache-results/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31842185,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T11:29:19.690Z","status":"ssl_error","status_checked_at":"2026-04-15T11:29:19.171Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cache","decorator","django"],"created_at":"2024-11-08T11:36:30.223Z","updated_at":"2026-04-15T12:36:05.810Z","avatar_url":"https://github.com/labd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. 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/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabd%2Fdjango-cache-results","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flabd%2Fdjango-cache-results","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabd%2Fdjango-cache-results/lists"}