# Class: CacheKeyConfiguration

## CacheKeyConfiguration(typeNameopt, affinityKeyFieldNameopt)

Class representing Cache Key part of Ignite CacheConfiguration.

All configuration settings are optional and have defaults which are defined on a server side.

See Apache Ignite documentation for details of every configuration setting.

## Constructor

#### new CacheKeyConfiguration(typeNameopt, affinityKeyFieldNameopt)

Public constructor.

##### Parameters:

Name | Type | Attributes | Default | Description
--- | --- | --- | --- | ---
`typeName` | string | <optional> | null |
`affinityKeyFieldName` | string | <optional> | null |

Source:
  - CacheConfiguration.js, line 35

### Methods

#### getAffinityKeyFieldName() → {string}

Source:
  - CacheConfiguration.js, line 88

##### Returns:

Type
  string

#### getTypeName() → {string}

Source:
  - CacheConfiguration.js, line 67

##### Returns:

Type
  string

#### setAffinityKeyFieldName(affinityKeyFieldName) → {CacheKeyConfiguration}

##### Parameters:

Name | Type | Description
--- | --- | ---
`affinityKeyFieldName` | string |

Source:
  - CacheConfiguration.js, line 78

##### Returns:

- the same instance of the CacheKeyConfiguration.

Type
  CacheKeyConfiguration

#### setTypeName(typeName) → {CacheKeyConfiguration}

##### Parameters:

Name | Type | Description
--- | --- | ---
`typeName` | string |

Source:
  - CacheConfiguration.js, line 57

##### Returns:

- the same instance of the CacheKeyConfiguration.

Type
  CacheKeyConfiguration