{"id":13856955,"url":"https://github.com/vincentsarago/lambda-proxy-cache","last_synced_at":"2025-10-28T15:31:22.609Z","repository":{"id":57438517,"uuid":"194362884","full_name":"vincentsarago/lambda-proxy-cache","owner":"vincentsarago","description":"A lambda-proxy plugin to add a caching layer","archived":false,"fork":false,"pushed_at":"2020-04-17T05:49:51.000Z","size":47,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-28T09:09:35.863Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vincentsarago.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-29T04:09:13.000Z","updated_at":"2021-06-11T14:51:18.000Z","dependencies_parsed_at":"2022-08-29T08:41:16.890Z","dependency_job_id":null,"html_url":"https://github.com/vincentsarago/lambda-proxy-cache","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentsarago%2Flambda-proxy-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentsarago%2Flambda-proxy-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentsarago%2Flambda-proxy-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentsarago%2Flambda-proxy-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vincentsarago","download_url":"https://codeload.github.com/vincentsarago/lambda-proxy-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219859202,"owners_count":16556036,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-08-05T03:01:20.195Z","updated_at":"2025-10-28T15:31:22.280Z","avatar_url":"https://github.com/vincentsarago.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# lambda-proxy-cache\n\n[![Packaging status](https://badge.fury.io/py/lambda-proxy-cache.svg)](https://badge.fury.io/py/lambda-proxy-cache)\n[![CircleCI](https://circleci.com/gh/vincentsarago/lambda-proxy-cache.svg?style=svg)](https://circleci.com/gh/vincentsarago/lambda-proxy-cache)\n[![codecov](https://codecov.io/gh/vincentsarago/lambda-proxy-cache/branch/master/graph/badge.svg)](https://codecov.io/gh/vincentsarago/lambda-proxy-cache)\n\nAdd a caching layer to [lambda-proxy](https://github.com/vincentsarago/lambda-proxy)\n\n\u003cimg width=\"600\" src=\"https://user-images.githubusercontent.com/10407788/60379162-e50a2880-99fb-11e9-8855-d42ec9b16fbf.png\"\u003e\n\n## Install\n\n```bash\n$ pip install -U pip\n$ pip install lambda-proxy-cache\n```\n\nOr install from source:\n\n```bash\n$ git clone https://github.com/vincentsarago/lambda-proxy-cache.git\n$ cd lambda-proxy-cache\n$ pip install -U pip\n$ pip install -e .\n```\n\n# Usage\n\n```python\nfrom lambda_proxy_cache.proxy import API\nfrom lambda_proxy_cache.backends.memcache import MemcachedCache\n\napp = API(name=\"app\", cache_layer=MemcachedCache(\"MyHostURL\"))\n\n@app.get('/user/\u003cname\u003e')\ndef print_name(name):\n    # Do something here\n    ...\n    return ('OK', 'plain/text', name)\n\n# By adding `no_cache=True` we tell the proxy to not use the cache\n@app.get('/user/\u003cname\u003e/id', no_cache=True)\ndef print_id(name):\n    # Do something here\n    ...\n    return ('OK', 'plain/text', id)\n```\n\n# Contribution \u0026 Devellopement\n\nIssues and pull requests are more than welcome.\n\n**Dev install \u0026 Pull-Request**\n\n```bash\n$ git clone https://github.com/vincentsarago/lambda-proxy-cache.git\n$ cd lambda-proxy-cache\n$ pip install -e .[dev]\n```\n\nThis repo is set to use pre-commit to run *flake8*, *pydocstring* and *black* (\"uncompromising Python code formatter\") when committing new code.\n\n```bash\n$ pre-commit install\n$ git add .\n$ git commit -m'my change'\n   black.........................Passed\n   Flake8........................Passed\n   Verifying PEP257 Compliance...Passed\n$ git push origin\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincentsarago%2Flambda-proxy-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvincentsarago%2Flambda-proxy-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincentsarago%2Flambda-proxy-cache/lists"}