InMemoryStorage Class
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
()
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