Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

django-cache-fallback

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-cache-fallback

Django Cache Fallback

  • 0.3.0
  • PyPI
  • Socket score

Maintainers
1

============================================================================== Django Cache Fallback.

:Info: This is the README file for Django Cache Fallback. :Author: Jakub Stawowy

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

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

.. code:: bash

pip install django-cache-fallback

.. code:: python

INSTALLED_APPS = (
   ...
   'cache_fallback',
)

USAGE

Usage example PyLibMCCache + LocMemCache

.. code:: python

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'
    }

}

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc