new Client()
Methods
(async) get(key) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The key to get |
Returns:
Return value if success
- Type: boolean
(async) fetch(key) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The key to fetch |
Returns:
Return value
- Type: boolean
(async) set(key), (value) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The value to set |
value |
string | The value to set |
Returns:
Return true if sucess
- Type: boolean
(async) add(key), (value) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The key in which you want to add |
value |
value | The value you want to add |
Returns:
Return true if sucess
- Type: boolean
(async) substract(key), (value) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The key in which you want to substract |
value |
number | The value you want to substract |
Returns:
Return true if sucess
- Type: boolean
(async) push(key), (value) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The key in which you want to push |
value |
string | The value you want to push |
Returns:
Return true if sucess
- Type: boolean
(async) all() → {boolean}
Returns:
Return true if sucess
- Type: boolean
(async) createBackup() → {boolean}
Returns:
Return true if sucess
- Type: boolean
(async) loadBackup(url, interval) → {boolean}
Returns:
Return true if sucess
- Type: boolean
(async) deleteKey() → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The key which you want to delete |
Returns:
Return true if sucess
- Type: boolean