key « memcached « Java Database Q&A

1. Memcache key generation strategy

Given function f1 which receives n String arguments, what would be considered better ,in terms of runtime performance, random key generation strategy for memcache? Our Memcache client does internal md5sum hashing on ...

2. memcached client throw java.lang.IllegalArgumentException: Key contains invalid characters

Seems memcache client doesn't support UTF-8 string as its key. But I have to use i18n. Anyway to fix it?

java.lang.IllegalArgumentException: Key contains invalid characters:  ``HK:00:A Kung Wan''
at net.spy.memcached.MemcachedClient.validateKey(
at net.spy.memcached.MemcachedClient.addOp(

3. Delete multiple keys from memcached

I have two tables, the data of which are cached using memcached. Both the tables are using the same memcached server. Ex: ABC table class:

public class ABC {
    public int abc;