Methods
(async) get(query, Object}, mongoOptions) → {*}
- Description:
- Retrieve cached data, or run fresh query if no cache exists or cache is invalid
- Source:
Parameters:
Name | Type | Description |
---|---|---|
query |
Object | |
Object} |
options | |
mongoOptions |
Object |
Returns:
The cached data
- Type
- *
prune()
- Description:
- Removes invalid cache data
- Source: