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>

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.

Source Distribution

django-elastipymemcache-1.2.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

django_elastipymemcache-1.2.1-py2.py3-none-any.whl (6.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-elastipymemcache-1.2.1.tar.gz.

File metadata

  • Download URL: django-elastipymemcache-1.2.1.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3

File hashes

Hashes for django-elastipymemcache-1.2.1.tar.gz
Algorithm Hash digest
SHA256 59db3778463307d5d9215a08b355890af09009481cc2e82578546f073a8c15a8
MD5 0d884a61d958918baed1e6e36474cde1
BLAKE2b-256 b4e01cfd1505abe117af579996caf620f63c749af9dda7a3236a9efafd05c085

See more details on using hashes here.

File details

Details for the file django_elastipymemcache-1.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: django_elastipymemcache-1.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3

File hashes

Hashes for django_elastipymemcache-1.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 30cfd37d7a42fb2347c597045a3df7aef53f6ad63b3c9d9707ec1fe6ecb004bb
MD5 c8b04ca993b14a6a269527aa3e002f77
BLAKE2b-256 78d29acc29f54b4ed34b74f758473f6e95efa9f764e6ee17b0cf1ccbc64090f4

See more details on using hashes here.

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