storage

Cache

Fast 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.

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.

Example

Decrement Request

Response

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