Show / Hide Table of Contents

# Class CacheKeyConfiguration

Configuration defining various aspects of cache keys without explicit usage of annotations on user classes.

##### Inheritance

System.Object
CacheKeyConfiguration

##### Inherited Members

System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()

###### Namespace: Apache.Ignite.Core.Cache.Configuration

###### Assembly: Apache.Ignite.Core.dll

##### Syntax

    public sealed class CacheKeyConfiguration : IBinaryRawWriteAware, IBinaryRawWriteAware<IBinaryRawWriter>

### Constructors

#### CacheKeyConfiguration()

Initializes a new instance of the CacheKeyConfiguration class.

##### Declaration

    public CacheKeyConfiguration()

#### CacheKeyConfiguration(Type)

Initializes a new instance of the CacheKeyConfiguration class, using specified type to look for AffinityKeyMappedAttribute.

##### Declaration

    public CacheKeyConfiguration(Type keyType)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Type | keyType |

### Properties

#### AffinityKeyFieldName

Gets or sets the name of the affinity key field. See also AffinityKeyMappedAttribute, AffinityKeyFieldName.

##### Declaration

    public string AffinityKeyFieldName { get; set; }

##### Property Value

Type | Description
--- | ---
System.String |

#### TypeName

Gets or sets the name of the key type.

##### Declaration

    public string TypeName { get; set; }

##### Property Value

Type | Description
--- | ---
System.String |