Members
(inner, constant) modulesCache
The main server cache.
- Source:
Methods
(inner) del(key)
Remove an object from the cache.
Parameters:
Name | Type | Description |
---|---|---|
key |
String |
- Source:
(inner) flush()
Flush the cache.
- Source:
(inner) get(key) → {Object}
Get a cached object.
Parameters:
Name | Type | Description |
---|---|---|
key |
String |
- Source:
Returns:
cached object
- Type
- Object
(inner) has(key) → {Boolean}
Return true if key exists in cache.
Parameters:
Name | Type | Description |
---|---|---|
key |
String |
- Source:
Returns:
true if exists
- Type
- Boolean
(inner) logStats()
Log the cache stats.
- Source:
(inner) set(key, value)
Cache an object.
Parameters:
Name | Type | Description |
---|---|---|
key |
String | |
value |
String |
- Source:
(async, inner) updateAllFromAPI()
Update all cached learning objects from LinkedIn Learning API.
Log the results and write out failed objects to a separate log file.
- Source:
(async, inner) updateFromAPI(key)
Update a single cached object from LinkedIn Learning API.
Parameters:
Name | Type | Description |
---|---|---|
key |
String |
- Source: