Storage Adapter API
You can easily develop custom storage adapters (e.g. for data coming from server, ajax,...). Storage Adapters must provide the following public callable methods:
- get:
get(service, key)
key
isoptedIn
oroptedOut
- returns
boolean
ornull
- set:
set(service, key, value, update)
key
isoptedIn
oroptedOut
value
will be the Dateupdate
determines if it should update the current data (= merge) or overwrite all data. True means merging.- returns
boolean
if was set successfully