Skip to content

ionelmc/django-uwsgi-cache

Repository files navigation

Overview

docs Documentation Status
tests GitHub Actions Build Status Coverage Status Coverage Status
package PyPI Package latest release PyPI Wheel Supported versions Supported implementations Commits since latest release

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.

About

uWSGI Django cache backend.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 6

Languages