ArchiveInitializerSettingsConfigureInMemory Method
Namespace: SnapDB.Snap.Services.WriterAssembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
Public Sub ConfigureInMemory (
encodingMethod As EncodingDefinition,
ParamArray flags As Guid()
)
public:
void ConfigureInMemory(
EncodingDefinition^ encodingMethod,
... array<Guid>^ flags
)
function ConfigureInMemory(encodingMethod, ... flags);
Parameters
- encodingMethod EncodingDefinition
- The encoding method to use for data storage.
- flags Guid
- Additional flags to apply to the archive configuration.
The
ConfigureInMemory(EncodingDefinition, Guid) method allows configuring the archive to use an in-memory storage format.
This method sets the
IsMemoryArchive property to
true, specifies the encoding method for
data storage, and allows adding additional flags to the archive configuration. Once configured as an in-memory
archive, data is stored in RAM instead of on disk, which can improve read/write performance at the cost of
data persistence.