storage

Cache

In-memory data storage

Introduction

The cache service provides simple in-memory key-value storage. Values can be stored with an optional time-to-live (TTL) to automatically expire entries. Get, set, and delete operations are supported as well as listing keys and incrementing counter values.

Features

Decrement

Decrement a value (if it's a number). If key not found it is equivalent to set.

Delete

Delete a value from the cache. If key not found a success response is returned.

Get

Get an item from the cache by key. If key is not found, an empty response is returned.

Increment

Increment a value (if it's a number). If key not found it is equivalent to set.

List Keys

List all the available keys

Set

Set an item in the cache. Overwrites any existing value already set.

Pricing

EndpointPer Request
DecrementBase
DeleteBase
GetBase
IncrementBase
List KeysBase
Set0.0001 USD

Base requests are 0.000001 USD

Example

Decrement Request

Response

{
    "key": "counter",
    "value": 0
}