Open sandboxFocus

Class CacheKeyBuilderOptions

Options of the CacheKeyBuilder class.

Inheritance
CacheKeyBuilderOptions
Namespace: Metalama.Patterns.Caching.Formatters
Assembly: Metalama.Patterns.Caching.dll
Syntax
public record CacheKeyBuilderOptions : IEquatable<CacheKeyBuilderOptions>

Constructors

Name Description
CacheKeyBuilderOptions()
CacheKeyBuilderOptions(CacheKeyBuilderOptions)

Properties

Name Description
EqualityContract
HashingAlgorithm

Gets or sets the hashing algorithm used to compress keys when their length exceeds KeyCompressingThreshold. Default is None.

KeyCompressingThreshold

Gets or sets the length threshold above which a key will be compressed using HashingAlgorithm. Only effective when HashingAlgorithm is not None. Default is 0 (compress all keys when hashing is enabled).

MaxKeySize

Gets or sets the maximum size of the cache key before compression. Default is 1024.

Methods

Name Description
Equals(CacheKeyBuilderOptions?)
Equals(object?)
GetHashCode()
PrintMembers(StringBuilder)
ToString()

Operators

Name Description
operator ==(CacheKeyBuilderOptions?, CacheKeyBuilderOptions?)
operator !=(CacheKeyBuilderOptions?, CacheKeyBuilderOptions?)

Extension Methods