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.

Features

See the features of the cache service below along with related pricing details

Endpoint Description Pricing (per request)
Decrement Decrement a value (if it's a number) Free
Delete Delete a value from the cache Free
Get Get an item from the cache by key Free
Increment Increment a value (if it's a number) Free
Set Set an item in the cache. Overwrites any existing value already set. Free

Examples

Decrement a value

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

Visit the API page to get started.