Skip to main content
https://img.shields.io/travis/youngking/gunicorn_cache.svg https://img.shields.io/pypi/v/gunicorn_cache.svg

Cache worker for gunicorn

  • Free software: ISC license

Usage

Add these settings in Gunicorn configuration file:

cache_route = [
    {'url': '^/custom_url1', 'methods':['GET', 'POST'], 'expire': 500},
    {'url': '^/custom_url2', 'methods': ['POST'], 'expire': 500, 'prolong': False}
]

cache_store = {'redis_url':'redis://127.0.0.1:6379/0'}

worker_class = 'gunicorn_cache.RedisWorker'

Then run the gunicorn.

Advance Usage

Refresh cache

curl -H "GUNICORN_CACHE_REFRESH:true" -X <method> <url>

Features

  • TODO

History

0.1.5 (2016-01-07)

  • Improve refresh cache

0.1.4 (2016-01-07)

  • Add refresh cache method

0.1.3 (2015-12-23)

  • Fix a response duplicated set bug

0.1.1 (2015-12-16)

  • Change configuration

  • add prolong feature

0.1.0 (2015-12-15)

  • First release on PyPI.

Metadata

Release files for gunicorn_cache 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gunicorn_cache 0.1.5
File Size Uploaded Provenance
gunicorn_cache-0.1.5.tar.gz 13.3 kB Without provenance Details

Release files / gunicorn_cache-0.1.5.tar.gz

Download URL gunicorn_cache-0.1.5.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
378803e35a134d71800c89473b2799584d3e7ca598de7278c6d27b07487de740
BLAKE2b-256 checksum
How to use checksums
cd27c8a421cb961c8097cd526161e946418f63b74198dd674056e4fafc57a841
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for gunicorn_cache 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.5 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page