Skip to main content

Django Cache Fallback

Project description

Info:

This is the README file for Django Cache Fallback.

Author:

Jakub Stawowy

https://api.travis-ci.com/Kub-AT/django-cache-fallback.svg?branch=master

PURPOSE

Allows you to set fallback cache backend (multiple cache backend). The data is not shared between cache backends. Example: Memcached is not available, backend switch to fallback. Site may slow down (cache have to be set) but will not rise an error (watch your logs)

INSTALLATION

pip install django-cache-fallback
INSTALLED_APPS = (
   ...
   'cache_fallback',
)

USAGE

Usage example PyLibMCCache + LocMemCache

CACHES = {
    'default': {
        'BACKEND': 'cache_fallback.FallbackCache',
    },

    'main_cache': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': '/tmp/memcached.sock',
        'TIMEOUT': 500,
    },
    'fallback_cache': {
        'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
        'LOCATION': 'unique'
    }

}

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_cache_fallback-0.4.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

django_cache_fallback-0.4.0-py2.py3-none-any.whl (4.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django_cache_fallback-0.4.0.tar.gz.

File metadata

  • Download URL: django_cache_fallback-0.4.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for django_cache_fallback-0.4.0.tar.gz
Algorithm Hash digest
SHA256 6f494f1aaad0a2951443b8fc59eaa54aaa7ce1107c9a0ec8e23a61a135502cb8
MD5 db77182a15c3ac4911c1d7f02cd3eb7c
BLAKE2b-256 07970bd6ae3f663841a94a44994e59e5b4cc55d1dbeed3b1e23520eb1572f79f

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_cache_fallback-0.4.0.tar.gz:

Publisher: python-publish.yml on Kub-AT/django-cache-fallback

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_cache_fallback-0.4.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_cache_fallback-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d443eb61c4d200a5b563a17e22f5afd6a4af897bad2d579dd85f2ae2523e235c
MD5 22829c256ec01106654c046e9d54e710
BLAKE2b-256 060474cf26771b28650a35710ce02fb66a2c5aafc9427ee6cd4a460225c35791

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_cache_fallback-0.4.0-py2.py3-none-any.whl:

Publisher: python-publish.yml on Kub-AT/django-cache-fallback

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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