API Docs for: 1.5.0
Show:

InMemoryStorage Class

Extends StorageAbstraction

Implementation of the storage abstraction utilizing simple in-memory variables

This storage is always usable. Its main purpose is the usage in conjunction with Single-Page-Applications, which do not need fancy session or domain based storages, which are available for more than one request.

Constructor

InMemoryStorage

()

Item Index

Properties

Methods

getItem

(
  • key
)

Retrieve an item from the storage

Parameters:

  • key String

Returns:

:

isComaptible

() Boolean static

Check whether this storage implementation is compatible with the current environment.

The InMemoryStorage is always compatible with any environment.

Returns:

Boolean:

removeItem

(
  • key
)

Remove an item from storage

Parameters:

  • key String

setItem

(
  • key
  • value
)

Store an item in storage

Parameters:

  • key String
  • value

Properties

_storage

Object private

Storage object, which is used internally to store all the given data