MemoryIoAdapter memoryIoAdapter = new MemoryIoAdapter();
Db4o.configure().io(memoryIoAdapter);
byte[]
content of the in-memory files in the _memoryFiles Hashtable in the adapter. After working with an in-memory ObjectContainer/ObjectServer the byte[]
content is available in the MemoryIoAdapter by using {@link #get(String)}. To add old existing database byte[]
content to a MemoryIoAdapter use {@link #put(String,byte[])}. To reduce memory consumption of memory file names that will no longer be used call {@link #put(String,byte[])}and pass an empty byte array.
|
|