skip to navigation
skip to content

Not Logged In

python-binary-memcached 0.21

A pure python module (thread safe) to access memcached via it's binary protocol with SASL auth support

Latest Version: 0.23

A pure python module (thread safe) to access memcached via it's binary with SASL auth support.

The main purpose of this module it to be able to communicate with memcached using binary protocol and support authentication, so it can work with Heroku for example.

Latest compiled docs on Read The Docs here.

Installing

Use pip or easy_install.

pip install python-binary-memcached

Using

import bmemcached
client = bmemcached.Client(('127.0.0.1:11211', ), 'user',
                            'password')
client.set('key', 'value')
print client.get('key')

Running the tests

First run memcached with:

memcached -S -vvv
memcached -p5000 -S -vvv
memcached -S -s/tmp/memcached.sock -vvv

This is to cover all tests with socket, standard port and non standard port.

Then, run the tests.

cd src_dir/
py.test

Using with Django

If you want to use it with Django, go to django-bmemcached to get a Django backend.

Tests Status

https://travis-ci.org/jaysonsantos/python-binary-memcached.png?branch=master
 
File Type Py Version Uploaded on Size
python-binary-memcached-0.21.tar.gz (md5) Source 2014-01-07 78KB
  • Downloads (All Versions):
  • 73 downloads in the last day
  • 756 downloads in the last week
  • 2313 downloads in the last month