ArchiveInitializerSettingsConfigureInMemory Method

Creates a ArchiveInitializerTKey, TValue that will reside in memory.

Definition

Namespace: SnapDB.Snap.Services.Writer
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public void ConfigureInMemory(
	EncodingDefinition encodingMethod,
	params Guid[] flags
)

Parameters

encodingMethod  EncodingDefinition
The encoding method to use for data storage.
flags  Guid
Additional flags to apply to the archive configuration.

Remarks

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.

See Also