All Products
Search
Document Center

Python

Last Updated: Oct 11, 2021

Download the client

Download address

About the client

Client versions

Environment configuration

Dependent on bmemcached (support SASL extension). For download link, see Python memcached.

Python code example

  1. #!/usr/bin/env python
  2. import bmemcached
  3. client = bmemcached.Client(('ip:port'), 'user', 'passwd') #Use instance ID as 'user'.
  4. print client.set('key', 'value11111111111')
  5. print client.get('key')