Interface amplifyStore

Hierarchy

Index

Call signatures

Properties

Call signatures

(key: string, value: any, options?: any)

Stores a value for a given key using the default storage type.

key: Identifier for the value being stored. value: The value to store. The value can be anything that can be serialized as JSON. [options]: A set of key/value pairs that relate to settings for storing the value.

Parameters

  • key: string
  • value: any
  • options?: any optional

(key: string): any

Gets a stored value based on the key.

Parameters

  • key: string

Returns

any

(): any

Gets a hash of all stored values.

Returns

any

Properties

public globalStorage: amplifyStorageTypeStore

Firefox 2+

public localStorage: amplifyStorageTypeStore

IE 8+, Firefox 3.5+, Safari 4+, Chrome, Opera 10.5+, iPhone 2+, Android 2+

public memory: amplifyStorageTypeStore

An in-memory store is provided as a fallback if none of the other storage types are available.

public sessionStorage: amplifyStorageTypeStore

IE 8+, Firefox 2+, Safari 4+, Chrome, Opera 10.5+, iPhone 2+, Android 2+

public userData: amplifyStorageTypeStore

IE 5 - 7