db4o

ExtDb4oFactory.OpenMemoryFile Method (IConfiguration, MemoryFile)

opens an Db4objects.Db4o.IObjectContainer for in-memory use .

In-memory ObjectContainers are useful for maximum performance on small databases, for swapping objects or for storing db4o format data to other media or other databases.

Be aware of the danger of running into OutOfMemory problems or complete loss of all data, in case of hardware or JVM failures.

public static IObjectContainer OpenMemoryFile(
   IConfiguration config,
   MemoryFile memoryFile
);

Parameters

config
a custom Configuration instance to be obtained via Db4objects.Db4o.Db4oFactory.NewConfiguration
memoryFile
a MemoryFile to store the raw byte data.

Return Value

an open ObjectContainer

See Also

ExtDb4oFactory Class | Db4objects.Db4o.Ext Namespace | ExtDb4oFactory.OpenMemoryFile Overload List | Db4objects.Db4o.Ext.MemoryFile