Add cache to lambda-proxy
Project description
lambda-proxy-cache
Add a caching layer to lambda-proxy
Install
$ pip install -U pip
$ pip install lambda-proxy-cache
Or install from source:
$ git clone https://github.com/vincentsarago/lambda-proxy-cache.git
$ cd lambda-proxy
$ pip install -U pip
$ pip install -e .
Usage
from lambda_proxy_cache.proxy import API
from lambda_proxy_cache.backends.memcache import MemcachedCache
cache = MemcachedCache()
APP = API(name="app", cache_layer=cache)
@APP.route('/test/tests/<id>', methods=['GET'], cors=True)
def print_id(id):
return ('OK', 'plain/text', id)
Contribution & Devellopement
Issues and pull requests are more than welcome.
Dev install & Pull-Request
$ git clone https://github.com/vincentsarago/lambda-proxy-cache.git
$ cd lambda-proxy-cache
$ pip install -e .[dev]
This repo is set to use pre-commit to run flake8, pydocstring and black ("uncompromising Python code formatter") when committing new code.
$ pre-commit install
$ git add .
$ git commit -m'my change'
black.........................Passed
Flake8........................Passed
Verifying PEP257 Compliance...Passed
$ git push origin
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for lambda-proxy-cache-0.0.1.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | da6f2480e9dc01f4eadd0631739c9eb058487a47e78e6b6b6daecbf3076cc69b |
|
MD5 | 343d2d54c5468050cd4aad4a8f4a3398 |
|
BLAKE2b-256 | 2b359507a49431b2b67dedaf134c2ef7c521e20e8e31695d8a63092896ef18f8 |