Show / Hide Table of Contents

Struct DiskSpacePool.Options

Represents configuration of the pool.

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

Properties

| Edit this page 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.

| Edit this page View Source

IsAsynchronous

Determines whether the asynchronous I/O is preferred.

Declaration
public bool IsAsynchronous { get; init; }
Property Value
Type Description
bool
| Edit this page 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, ReadOnlySpan<T>)
Collection.ToAsyncEnumerator<TEnumerator, T>(TEnumerator, CancellationToken)
Collection.ToClassicEnumerator<TEnumerator, T>(TEnumerator)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
ExpressionBuilder.Const<T>(T)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾