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.0
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.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

django_elastipymemcache-1.2.0-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.0.tar.gz.

File metadata

  • Download URL: django-elastipymemcache-1.2.0.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.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3

File hashes

Hashes for django-elastipymemcache-1.2.0.tar.gz
Algorithm Hash digest
SHA256 23d9cf2aafb5b58abe57a25647bd537cd15f32b8a3529498c2ef194d43445920
MD5 ae6b1c72775f4e39d7636f5d2c90ea55
BLAKE2b-256 7a1a95fd6412e23774bbc5bc6f3a94f608c8402ecf05c3bbcc9fa31d7c4e9505

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_elastipymemcache-1.2.0-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.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3

File hashes

Hashes for django_elastipymemcache-1.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2a06c0672edb50322993056aa434b32ca202efeaae89e14833bc557941357568
MD5 0c43812d6c0d73f88a768c3ec76ac647
BLAKE2b-256 1d771dc578c3994080eda6e2f4db6706123eaa7f30bf7fd562762804bc64b12a

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