Memcached client wrapper that is configured via environment variables.
Find a file
2014-09-03 13:02:39 -04:00
docs Initial version 2014-09-02 16:16:07 -04:00
sprockets Initial version 2014-09-02 16:16:07 -04:00
.gitignore Initial commit 2014-08-29 13:23:14 -04:00
.travis.yml Add simple integration tests 2014-09-03 12:04:12 -04:00
dev-requirements.txt Initial version 2014-09-02 16:16:07 -04:00
LICENSE Initial version 2014-09-02 16:16:07 -04:00
MANIFEST.in Initial version 2014-09-02 16:16:07 -04:00
README.rst Initial version 2014-09-02 16:16:07 -04:00
setup.cfg Initial version 2014-09-02 16:16:07 -04:00
setup.py Initial version 2014-09-02 16:16:07 -04:00
test-requirements.txt Initial version 2014-09-02 16:16:07 -04:00
tests.py Fix the incr test 2014-09-03 13:02:39 -04:00

sprockets.clients.memcached
===========================
Memcached client wrapper that is configured via environment variables.

|Version| |Downloads| |Status| |Coverage| |License|

Installation
------------
``sprockets.clients.memcached`` is available on the
`Python Package Index <https://pypi.python.org/pypi/sprockets.clients.memcached>`_
and can be installed via ``pip`` or ``easy_install``:

.. code:: bash

  pip install sprockets.clients.memcached

Documentation
-------------
https://sprocketsclientsmemcached.readthedocs.org

Requirements
------------
-  `sprockets <https://github.com/sprockets/sprockets>`_
-  `python-memcached <https://pypi.python.org/pypi/python-memcached>`_ (Python 2)
-  `python3-memcached <https://pypi.python.org/pypi/python3-memcached>`_ (Python 3)

Example
-------
The following example sets the environment variables for connecting to
memcached on ``192.168.1.2`` and ``192.168.1.3`` and subsequently issuing a few
memcached commands:

.. code:: python

    import os

    from sprockets.clients import memcached

    os.environ['MEMCACHED_SERVERS'] = '192.168.1.2:11211,192.168.1.3:11211'


    client = memcached.Client()
    client.set('foo', 'bar')
    print(client.get('foo'))


Version History
---------------
Available at https://sprocketsclientsmemcached.readthedocs.org/en/latest/history.html

.. |Version| image:: https://badge.fury.io/py/sprockets.clients.memcached.svg?
   :target: http://badge.fury.io/py/sprockets.clients.memcached

.. |Status| image:: https://travis-ci.org/sprockets/sprockets.clients.memcached.svg?branch=master
   :target: https://travis-ci.org/sprockets/sprockets.clients.memcached

.. |Coverage| image:: https://img.shields.io/coveralls/sprockets/sprockets.clients.memcached.svg?
   :target: https://coveralls.io/r/sprockets/sprockets.clients.memcached

.. |Downloads| image:: https://pypip.in/d/sprockets.clients.memcached/badge.svg?
   :target: https://pypi.python.org/pypi/sprockets.clients.memcached

.. |License| image:: https://pypip.in/license/sprockets.clients.memcached/badge.svg?
   :target: https://sprocketsclientsmemcached.readthedocs.org