The question is clear I think. I saw that it's possible for python in this stack overflow question: Avoiding Memcache "1000000 bytes in length" limit on values but how to do it in java. (synchronously)
For example I have the object in bytes[] how to split before save and merge after that :
ByteArrayOutputStream bos = new ByteArrayOutputStream();
ObjectOutput out = null;
byte[] bytes;
try {
out = new ObjectOutputStream(bos);
out.writeObject(obj);
bytes = bos.toByteArray();
} catch (IOException e) {
e.printStackTrace();
} finally {
...
As I see in Python is used only one key and the rest of the keys are generated somehow according to the size of the byte array that is generated. So the chunks are save under keys: key0, key1, key2 and so on. If I want to retrieve them back how to know how many are the chunks. May be to save them under the 'key' itself.