Methods
(async, inner) getInformationData(type) → {String}
Gets content of an information entry matching the input information
type. Fetches from cache if possible, otherwise, fetches from
database and caches the value for future use.
Parameters:
Name | Type | Description |
---|---|---|
type |
String | type of information |
- Source:
Returns:
content of information entry
- Type
- String
(async, inner) updateInformation(information) → {Object}
Updates an information entry that already exists in the database.
Upon success, updates the record in the cache too.
Parameters:
Name | Type | Description |
---|---|---|
information |
Object | a valid information object |
- Source:
Returns:
updated information entry
- Type
- Object