storage
0.000001 USD
Decrement a value (if it's a number). If key not found it is equivalent to set.
keystring
The key to decrement
valuenumber
The amount to decrement the value by
keystring
The key decremented
valuenumber
The new value
Request
Response
{
"key": "counter",
"value": 0
}
0.000001 USD
Delete a value from the cache. If key not found a success response is returned.
keystring
The key to delete
statusstring
Returns "ok" if successful
Request
Response
{
"status": "ok"
}
0.000001 USD
Get an item from the cache by key. If key is not found, an empty response is returned.
keystring
The key to retrieve
keystring
The key
ttlnumber
Time to live in seconds
valuestring
The value
Request
Response
{
"key": "foo",
"value": "bar",
"ttl": 0
}
0.000001 USD
Increment a value (if it's a number). If key not found it is equivalent to set.
keystring
The key to increment
valuenumber
The amount to increment the value by
keystring
The key incremented
valuenumber
The new value
Request
Response
{
"key": "counter",
"value": 2
}
0.000001 USD
List all the available keys
keysarray
Request
Response
{
"keys": [
"counter",
"foo"
]
}
0.0001 USD
Set an item in the cache. Overwrites any existing value already set.
keystring
The key to update
ttlnumber
Time to live in seconds
valuestring
The value to set
statusstring
Returns "ok" if successful
Request
Response
{
"status": "ok"
}