Metadata-Version: 2.0
Name: django-elastipymemcache
Version: 0.0.5
Summary: Django cache backend for Amazon ElastiCache (memcached)
Home-page: http://github.com/uncovertruth/django-elastipymemcache
Author: UNCOVER TRUTH Inc.
Author-email: develop@uncovertruth.co.jp
License: MIT
Keywords: elasticache amazon cache pymemcache memcached aws
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Framework :: Django :: 1.8
Classifier: Framework :: Django :: 1.9
Classifier: Framework :: Django :: 1.10
Classifier: Framework :: Django :: 1.11
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: Django (>=1.8)
Requires-Dist: pymemcache

=======================
django-elastipymemcache
=======================

:Info: Simple Django cache backend for Amazon ElastiCache (memcached based).
:Author: UNCOVER TRUTH Inc. <develop@uncovertruth.co.jp>
:Copyright: © UNCOVER TRUTH Inc.
:Date: 2017-04-11
:Version: 0.0.5

.. index: README
.. image:: https://travis-ci.org/uncovertruth/django-elastipymemcache.svg?branch=master
    :target: https://travis-ci.org/uncovertruth/django-elastipymemcache
.. image:: https://codecov.io/gh/uncovertruth/django-elastipymemcache/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/uncovertruth/django-elastipymemcache
.. image:: https://requires.io/github/uncovertruth/django-elastipymemcache/requirements.svg?branch=master
    :target: https://requires.io/github/uncovertruth/django-elastipymemcache/requirements/?branch=master
.. image:: https://badge.fury.io/py/django-elastipymemcache.svg
    :target: https://badge.fury.io/py/django-elastipymemcache

Purpose
-------

Simple Django cache backend for Amazon ElastiCache (memcached based). It uses
`pymemcache <https://github.com/pinterest/pymemcache>`_ and sets up a connection to each
node in the cluster using
`auto discovery <http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/AutoDiscovery.html>`_.
Originally forked from `django-elasticache <https://github.com/gusdan/django-elasticache>`_.

Requirements
------------

* pymemcache
* Django>=1.8

Installation
------------

Get it from `pypi <http://pypi.python.org/pypi/django-elastipymemcache>`_::

    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
            }
        }
    }

Testing
-------

Run the tests like this::

    nosetests


