Struct DiskSpacePool.Options
Represents configuration of the pool.
Inherited Members
Namespace: DotNext.Runtime.Caching
Assembly: DotNext.IO.dll
Syntax
public readonly struct DiskSpacePool.Options
Properties
| Edit this page View SourceExpectedNumberOfSegments
Gets or sets the expected number of segments to preallocate the disk space.
Declaration
public int ExpectedNumberOfSegments { get; init; }
Property Value
Type | Description |
---|---|
int |
Remarks
It has no effect if OptimizedDiskAllocation is set to true.
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException |
|
IsAsynchronous
Determines whether the asynchronous I/O is preferred.
Declaration
public bool IsAsynchronous { get; init; }
Property Value
Type | Description |
---|---|
bool |
OptimizedDiskAllocation
Indicates that the allocation of the data on disk is optimized.
Declaration
public bool OptimizedDiskAllocation { get; init; }
Property Value
Type | Description |
---|---|
bool |
Remarks
The segment typically doesn't contain meaningful payload for a whole size of the segment. To reduce disk space consumption, this parameter can be set to true by the cost of I/O performance.