Memcached client wrapper that is configured via environment variables.
Go to file
Dave Shawley 941b008d9f dev-requirements: fix readthedocs build. 2018-01-09 14:58:28 -05:00
docs Metadata bumps for 1.1.0. 2018-01-09 14:51:17 -05:00
sprockets Metadata bumps for 1.1.0. 2018-01-09 14:51:17 -05:00
.gitignore Initial commit 2014-08-29 13:23:14 -04:00
.travis.yml Remove python 2.6 support. 2018-01-09 14:29:14 -05:00
LICENSE Documentation updates. 2018-01-09 14:29:14 -05:00
MANIFEST.in Remove python3-memcached. 2018-01-09 14:29:10 -05:00
README.rst Documentation updates. 2018-01-09 14:29:14 -05:00
dev-requirements.txt dev-requirements: fix readthedocs build. 2018-01-09 14:58:28 -05:00
requirements.txt Remove python3-memcached. 2018-01-09 14:29:10 -05:00
setup.cfg Simplify 2014-09-05 16:12:21 -04:00
setup.py Metadata bumps for 1.1.0. 2018-01-09 14:51:17 -05:00
test-requirements.txt Simplify 2014-09-05 16:12:21 -04:00
tests.py Simplify 2014-09-05 16:12:21 -04:00

README.rst

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

|Version| |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
------------
-  `python-memcached <https://pypi.python.org/pypi/python-memcached>`_

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.io/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

.. |License| image:: https://img.shields.io/github/license/sprockets/sprockets.clients.memcached.svg
   :target: https://sprocketsclientsmemcached.readthedocs.io