All Products
Search
Document Center

:Python

Last Updated:Feb 26, 2025

Client download

Download address

About the client

Client versions

Environment configuration

The bmemcached dependency that supports Simple Authentication and Security Layer (SASL) must be installed. To download bmemcached, click Python memcached.

Sample Python code

#!/usr/bin/env python
import bmemcached
client = bmemcached.Client(('ip:port'), 'user', 'passwd') #The user parameter specifies the instance ID.
print client.set('key', 'value11111111111')
print client.get('key')