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

django-elastipymemcache

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-elastipymemcache

Django cache backend for Amazon ElastiCache (memcached)

  • 2.0.5
  • PyPI
  • Socket score

Maintainers
3

======================= django-elastipymemcache

.. index: README .. image:: https://travis-ci.org/harikitech/django-elastipymemcache.svg?branch=master :target: https://travis-ci.org/harikitech/django-elastipymemcache .. image:: https://codecov.io/gh/harikitech/django-elastipymemcache/branch/master/graph/badge.svg :target: https://codecov.io/gh/harikitech/django-elastipymemcache

Purpose

Simple Django cache backend for Amazon ElastiCache (memcached based). It uses pymemcache <https://github.com/pinterest/pymemcache>_ and sets up a connection to each node in the cluster using auto discovery <http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/AutoDiscovery.html>. Originally forked from django-elasticache <https://github.com/gusdan/django-elasticache>.

Requirements

  • pymemcache
  • Django>=2.2
  • django-pymemcache>=1.0

Installation

Get it from pypi <http://pypi.python.org/pypi/django-elastipymemcache>_::

pip install django-elastipymemcache

Usage

Your cache backend should look something like this::

CACHES = {
    'default': {
        'BACKEND': 'django_elastipymemcache.backend.ElastiPymemcache',
        'LOCATION': '[configuration endpoint]:11211',
        'OPTIONS': {
          'ignore_exc': True, # pymemcache Client params
          'ignore_cluster_errors': True, # ignore get cluster info error
        }
    }
}

Testing

Run the tests like this::

nosetests

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