Skip to main content

Django cache backend for Amazon ElastiCache (memcached)

Project description

Info:Simple Django cache backend for Amazon ElastiCache (memcached based).
Author: UNCOVER TRUTH Inc. <develop@uncovertruth.co.jp>
Copyright: © UNCOVER TRUTH Inc.
Date: 2018-06-19
Version: 1.2.1
https://travis-ci.org/uncovertruth/django-elastipymemcache.svg?branch=master https://codecov.io/gh/uncovertruth/django-elastipymemcache/branch/master/graph/badge.svg https://requires.io/github/uncovertruth/django-elastipymemcache/requirements.svg?branch=master https://badge.fury.io/py/django-elastipymemcache.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>=1.11

Installation

Get it from pypi:

pip install django-elastipymemcache

Usage

Your cache backend should look something like this:

CACHES = {
    'default': {
        'BACKEND': 'django_elastipymemcache.memcached.ElastiPyMemCache',
        'LOCATION': '[configuration endpoint]:11211',
        'OPTIONS': {
          'cluster_timeout': 1, # its used when get cluster info
          '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.

Files for django-elastipymemcache, version 1.2.1
Filename, size File type Python version Upload date Hashes
Filename, size django_elastipymemcache-1.2.1-py2.py3-none-any.whl (6.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size django-elastipymemcache-1.2.1.tar.gz (7.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page