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

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

Uploaded Source

Built Distribution

django_elastipymemcache-1.3.0-py2.py3-none-any.whl (6.1 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: django-elastipymemcache-1.3.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.0

File hashes

Hashes for django-elastipymemcache-1.3.0.tar.gz
Algorithm Hash digest
SHA256 d3af4bb3e959659a1c9e1ab99d169b8a8b1be770a9c3ff04aecd43b504332837
MD5 60eb42f83763e19d933107d4be894f1a
BLAKE2b-256 e927abaa85be62386f8a296992fb167bf6c8e4a5598edd33369161c430622f41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_elastipymemcache-1.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.0

File hashes

Hashes for django_elastipymemcache-1.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8996801b43b4d0b7ac48a903cfce078473d5655dc3a709c4be6e3ec632bdbb90
MD5 10ab3a23774592f6d57e96322cc44050
BLAKE2b-256 889bfd75dc6e0ac0a53a68195b56332c61a36b3243c3a0792a379f2391f398ea

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