Typically, this kind of behavior is achieved in memcached through a namespace. Within one memcached instance, multiple namespaces are supported, each of which represents a different cache. However, memcached does not support namespace names; instead, memcached namespaces are emulated using prefix keys with a namespace identifier (for example, memcachedClient.get('products.top10')). Some memcached clients, such as the Python GAE memcached client , render this behavior for you. However, as far as I can tell, xmemcached does not.
There are two options left.
- Manually add each key you are working with.
XMemcachedClient : String namespace, , get0(), . , XMemcached.