Cachist
v1.0.0

Cachist API Documentation

Cachist is a global cache layer designed for applications that require distributed state synchronization with low latency. We provide sub-millisecond hot-data access with reliable persistence and powerful search capabilities across keys and JSON content.

Storage Modes

T

Text Mode (Raw)

When you set a value as a simple string, it is stored as **Raw Text**. This mode is optimized for ultra-fast searches on **keys and aliases only**. Searching within the content itself is not supported.

Regex ✅JSON Query ❌
{ }

JSON Mode (Indexed)

Setting a value as a valid JSON object triggers **Automatic Indexing**. This enables full field querying directly on your values.

Regex ✅JSON Query ✅

Authentication

All requests to the Cachist API must include your API Key in the x-api-key header. You can generate and manage your keys in the Panel.

GET https://api.cachist.com/cache?key=:key
x-api-key: your_sk_...

Core Operations

Basic key-value storage with optional aliases and TTL (Time-To-Live).

Key: max 512 charsText: max 10MBJSON: max 1MB
PUThttps://api.cachist.com/cache
{
  "key": "user:99",
  "jsonValue": {
    "role": "admin",
    "credits": 500
  },
  "ttl": 3600,
  "aliases": [
    "session_alpha",
    "admin_99"
  ]
}
Replaces: PUT will overwrite any existing key with the same name.

Cleanup & TTL

Our background maintenance engine automatically invalidates and removes records from both Redis and Postgres once they expire. You don't need to worry about stale data consuming your credits.

Note: Inactive keys or keys with zero credits will be automatically suspended until credits are refilled.