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

Uploaded Source

Built Distribution

django_elastipymemcache-2.0.5-py2.py3-none-any.whl (5.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django_elastipymemcache-2.0.5.tar.gz.

File metadata

File hashes

Hashes for django_elastipymemcache-2.0.5.tar.gz
Algorithm Hash digest
SHA256 e0427f5053c2658a6f0a2d85aebf02ed23f65c4edb6fb1ca5809d90dcab1aaa4
MD5 4f47f05a8ccde89019859d970f35a533
BLAKE2b-256 81f26f0527e6041b802d69b360ad080afa0009339e9894c18b2c88d2a7416168

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_elastipymemcache-2.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 14e722978ea9c80da95cc6004415f61a450beacca40487c7faab0f76e8545b68
MD5 98d160f05683b776aef2f6120077848b
BLAKE2b-256 88dc2fbf3004a16c42ad3147cda10a1b0b4cbb9c70eec5681031cebe966c3cdf

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