Skip to main content

uWSGI Django cache backend.

Project description

uWSGI Django cache backend.

  • Free software: BSD 2-Clause License

Installation

pip install django-uwsgi-cache and change settings to:

CACHES = {
    'default': {
        'BACKEND': 'uwsgicache.UWSGICache',

        # and optionally, if you use a different cache name
        'LOCATION': 'foobar'
    }
}

Requirements

  • Django 4.2 or later.

  • Python 3.9 or later.

Settings

UWSGI_CACHE_FALLBACK

  • False - raises Exception if uwsgi cannot be imported.

  • True (default) - if uwsgi is not importable this cache backend will alias to LocMemCache. Note that mangement commands might try to load the cache backend so this is why it’s the default.

Changelog

1.1.0 (2025-10-01)

  • Fixed bug that occurs when timeout=DEFAULT_TIMEOUT is used. Contributed by György Kiss in #12.

  • Added pickle_protocol class property (defaults to pickle.HIGHEST_PROTOCOL).

  • Django 4.2 or later is required now.

  • Python 3.9 or later is required now.

1.0.1 (2015-07-01)

  • Stop depending explicitly on uwsgi in setup.py (helps with development and such).

1.0.0 (2014-12-10)

  • Support for special timeout values in Django 1.6 and 1.7 (contributed by Laurent Payot)

0.3.0 (2014-07-25)

  • Python 3 support (contributed by Laurent Payot)

  • Support for cache.clear (contributed by Omer Katz)

0.? (?)

  • N/A (contributed by Riccardo Magliocchetti)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_uwsgi_cache-1.1.0.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_uwsgi_cache-1.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file django_uwsgi_cache-1.1.0.tar.gz.

File metadata

  • Download URL: django_uwsgi_cache-1.1.0.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for django_uwsgi_cache-1.1.0.tar.gz
Algorithm Hash digest
SHA256 2e7236d1df699a65d92cb238172c1078abad38efe9134ca0959eea408673145b
MD5 0112a51d4bc03e4955b1887ccd38019c
BLAKE2b-256 384908208e712a782c215a886990798e6a3b19dfd6af943ada2d2202c49b9b7a

See more details on using hashes here.

File details

Details for the file django_uwsgi_cache-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_uwsgi_cache-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2211fa495ae5c841a6fb7f582f5d99a523cd505b7932f09db704caa0ce5cd0a2
MD5 3742bf70dfbac3a7e412144dc7529242
BLAKE2b-256 18b8e81dbc4bf84814f958bf27b41d9deaf1177b3bf2d11cd3307b59f7a94f56

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page