storage

Cache

Quick access key-value storage

Introduction

The cache service provides simple get/set/delete key-value storage. Values can be stored with an optional time-to-live (TTL) to automatically expire entries.

The max value size is 1MB.

FeaturesFull documentation

EndpointDescriptionPricing (per request)
DecrementDecrement a value (if it's a number). If key not found it is equivalent to set.Free
DeleteDelete a value from the cache. If key not found a success response is returned.Free
GetGet an item from the cache by key. If key is not found, an empty response is returned.Free
IncrementIncrement a value (if it's a number). If key not found it is equivalent to set.Free
List KeysList all the available keysFree
SetSet an item in the cache. Overwrites any existing value already set.Free

Example

Please see an example of how to get started with the cache api.

For a more detailed view please see the API page

Decrement Request

Response

1{
2    "key": "counter",
3    "value": 0
4}