key

The key configuration option is required if you create a Store for read-write data access. An appropriate getter specifies the key property. If you need to specify a compound key property, assign an array of getters to this option.

The following example demonstrates how to set id and code key properties:

JavaScript

var storeConfig = {
key: ["id", "code"]
}

name

The unique identifier used to distinguish the data within the HTML5 Web Storage.