Methods
_cache(key, value)
Cache a new key/value pair
Parameters:
Name | Type | Description |
---|---|---|
key |
String
|
Key to be cached |
value |
*
|
Value to be cached |
_cached(key)
Get cached value for a given key
Parameters:
Name | Type | Description |
---|---|---|
key |
String
|
Key to return value for from cache |
_isCached(key)
Check if a given key is cached
Parameters:
Name | Type | Description |
---|---|---|
key |
String
|
Key to check for in the cache |
_params() → {Object}
Construct params object, starting with this.defaultParams
Returns:
- Type:
-
Object
- Returns any params given merged ontop of defaultParams