-
delete(key)
-
Delete the selected data from the cache by its ID.
Parameters:
Name |
Type |
Description |
key |
string
|
The data's key. |
- Source:
-
lib/settings/CacheManager.js#L58
Returns:
-
Type
-
any
-
get(key)
-
Get the data from the cache by its ID.
Parameters:
Name |
Type |
Description |
key |
string
|
The key to search for. |
- Source:
-
lib/settings/CacheManager.js#L28
Returns:
-
Type
-
Object
-
getAll()
-
Get all the data from the cache as an array of objects.
- Source:
-
lib/settings/CacheManager.js#L37
Returns:
-
Type
-
Array.<Object>
-
set(key, value)
-
Save a new data to the cache.
Parameters:
Name |
Type |
Description |
key |
string
|
The data's key. |
value |
Object
|
The data's value. |
- Source:
-
lib/settings/CacheManager.js#L48
Returns:
-
Type
-
any