Redis cache
This demo calls a deliberately slow API endpoint exposed by the interface service at /edge/public/heavy and uses the kvGet / kvSet helpers from @o3osatoshi/toolkit to cache the response in Upstash Redis. Requests within the TTL are served from cache; once the TTL expires, the next request recomputes the value by hitting the slow API again.
Cached slow endpoint
Press the button below multiple times. The first request should take roughly three seconds as it hits the slow API. Subsequent requests within the cache TTL will be significantly faster and marked as "Redis cache"; after the TTL expires, the next request will become slow again and refresh the cached value.
Redis cache demo
Call a deliberately slow API endpoint (`/edge/public/heavy`) via the interface service and cache the result in Redis. Subsequent requests within the TTL should be served from cache and return much faster.
- Status
- Idle
- Source
- —
- Server duration
- —
- Client duration
- —
- Cached at
- —
- Value
- —