Caching

Configuration

Stream-specific cache configuration can be specified on the stream.

// streams/examples.json
{
    "config": {
        "cache": {
            "enabled": true,
            "ttl": 300
        }
    }
}

Cache Parameter

The cache parameter can be specified in seconds when sending query parameters:

// GET /api/streams/examples/entries
{
    "query": [
        {"cache": [300]}
        {"where": ["statu", "active"]}
    ]
}

Related Documentation