Skip to main content

Django cache backend for Amazon ElastiCache (memcached)

Project description

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

Purpose

Simple Django cache backend for Amazon ElastiCache (memcached based). It uses pymemcache and sets up a connection to each node in the cluster using auto discovery. Originally forked from django-elasticache.

Requirements

  • pymemcache

  • Django>=2.2

  • django-pymemcache>=1.0

Installation

Get it from pypi:

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

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-elastipymemcache-2.0.4.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

django_elastipymemcache-2.0.4-py2.py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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