Show / Hide Table of Contents

Struct DiskSpacePool.Options

Represents configuration of the pool.

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: DotNext.Runtime.Caching
Assembly: DotNext.IO.dll
Syntax
public readonly struct DiskSpacePool.Options

Properties

View Source

ExpectedNumberOfSegments

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

value is less than or equal to zero.

View Source

IsAsynchronous

Determines whether the asynchronous I/O is preferred.

Declaration
public bool IsAsynchronous { get; init; }
Property Value
Type Description
bool
View Source

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.

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾