API Docs for: 0.4.0.9e0c4433
Show:

BaseAdapter Class

Extends Ember.Object
Module: adapters
Parent Module: ember-cli-storagekit

Methods

clear

() public

Clears all key/value pairs from storage

getItem

(
  • key
)
public

Gets a value from storage based on a given key

Parameters:

  • key String

    The key to use when retrieving a value from storage

Returns:

The value retrieved from storage based on the given key

key

()

keys

() public

Returns all the keys that are currently in the storage "world" in sorted order (where the namespace defines the world boundary).

length

() Number public

The current length/number of items in storage

Returns:

Number:

The number of items in storage

removeItem

(
  • key
)
public

Removes a value from storage using a given key

Parameters:

  • key String

    The key/value to remove from storage

setItem

(
  • key
  • value
)
public

Sets a value into storage under a provided key

Parameters:

  • key String

    The key name to store the given value under

  • value

    A value to store under a specified key

Properties

serializer

private

The serializer to use when storing values into storage

storage The storage service to delegate to

private