APIs

Show:

Library to call local storage functions.

Item Index

Methods

add

(
  • key
  • value
)

Method to add an element to local Storage.

Parameters:

  • key String
    • Element key.
  • value String
    • element value.

clear

()

Method to clear all elements from Session Storage.

get

(
  • key
  • value
)
Object

Method to get an element from Session Storage.

Parameters:

  • key String
    • Element key.
  • value String
    • element value.

Returns:

Object:
  • Object from local storage.

load

()

Method to load local Storage from DataBase.

remove

(
  • key
  • value
)

Method to remove an element from Session Storage.

Parameters:

  • key String
    • Element key.
  • value String
    • element value.

save

(
  • key
  • value
)
Boolean

Method to save local Storage to DataBase.

Parameters:

  • key String
    • The url of the service.
  • value String
    • POST or GET.

Returns:

Boolean:
  • If was saved correctly.