Methods
(async, inner) fetchAll() → {Array}
Fetch all capabilities. If cached,
return from cache, otherwise, fetch from
database and cache the values.
- Source:
Returns:
all capability objects
- Type
- Array
(async, inner) fetchById(id) → {Object}
Fetch a capability object by id from database.
Parameters:
Name | Type | Description |
---|---|---|
id |
Number |
- Source:
Returns:
capability object
- Type
- Object
(async, inner) fetchByKeyword(keyword) → {Array}
Fetch capabilities based on input keyword.
If capabilities are cached, return from cache,
otherwise, fetch from database.
Parameters:
Name | Type | Description |
---|---|---|
keyword |
String |
- Source:
Returns:
matching capability objects
- Type
- Array