IMPLEMENTATION DOCS / UNS FRAMEWORK

uns-cache — Cache Reader API

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

Capture · Reads the latest cached values. For a record of how a signal changed over time, use the historian.
LanguageNode.js
TypeHTTP function
Scaffolded withfnkit node
Depends onValkey cache
On this page 4 sections
What It DoesAPI UsageResponseQuick Start

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