KGy SOFT

LockFreeCacheOptions Class

KGy SOFT Core Libraries Help
Inheritance Hierarchy

SystemObject
  KGySoft.CollectionsThreadSafeCacheOptionsBase
    KGySoft.CollectionsLockFreeCacheOptions

Namespace:  KGySoft.Collections
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 6.0.0-rc.2
Syntax

public sealed class LockFreeCacheOptions : ThreadSafeCacheOptionsBase

The LockFreeCacheOptions type exposes the following members.

Constructors

  NameDescription
Public methodLockFreeCacheOptions
Initializes a new instance of the LockFreeCacheOptions class
Top
Properties

  NameDescription
Public propertyHashingStrategy
Gets or sets the hashing strategy to be used by the cache.
Default value: Auto.
Public propertyInitialCapacity
Gets or sets the initial capacity of the cache.
Default value: 16.
See also the Remarks section of the ThresholdCapacity property for details.
Public propertyMergeInterval
Gets or sets a time period, which may trigger a merge operation into the faster read-only storage even when no new elements are added. If , then time-based merging is disabled.
Default value: .
Public propertyThresholdCapacity
Gets or sets the maximum number of elements, which triggers a merge operation from the underlying dynamic growing storage into the faster read-only storage. Specifies also the number of elements to be kept when older elements are dropped from the cache. The actual maximum number of stored items may be about twice of this value.
Default value: 1024.
Top
Extension Methods

  NameDescription
Public Extension MethodConvert(Type, CultureInfo)Overloaded.
Converts an Object specified in the obj parameter to the desired targetType.
See the Examples section of the generic ConvertTTarget(Object, CultureInfo) overload for an example.
(Defined by ObjectExtensions.)
Public Extension MethodCode exampleConvertTTarget(CultureInfo)Overloaded.
Converts an Object specified in the obj parameter to the desired TTarget.
(Defined by ObjectExtensions.)
Public Extension MethodIn (Defined by ObjectExtensions.)
Public Extension MethodTryConvert(Type, Object)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired targetType.
(Defined by ObjectExtensions.)
Public Extension MethodTryConvert(Type, CultureInfo, Object)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired targetType.
(Defined by ObjectExtensions.)
Public Extension MethodTryConvertTTarget(TTarget)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions.)
Public Extension MethodTryConvertTTarget(CultureInfo, TTarget)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions.)
Top
See Also

Reference