uns-cache — Cache Reader API

Reads UNS topic data from Valkey and returns JSON with change detection.

LanguageNode.js
TypeHTTP function
Scaffolded withfnkit node
Depends onValkey cache

What It Does

Reads cached UNS topic data from Valkey. Compares current vs previous values to detect changes.

API Usage

curl https://api.fnkit.dev/uns-cache
curl -d '{"topics":["v1.0/.../cnc-01/status"]}' https://api.fnkit.dev/uns-cache\\
    

Response

{ "topic_count": 12, "changed_count": 3,
  "topics": [{ "topic":"...", "value":{}, "previous_value":{}, "changed":true }],
  "changes": [{ /* only changed topics */ }] }

Quick Start

cd uns-cache && cp .env.example .env && docker compose up -d
curl http://localhost:8080/uns-cache | jq