Check Redis relationship block cache for a channel
Validates
Confirms whether the relationship block cache is populated for a channel. A -2 TTL means the next request will call buildRelationshipBlock fresh. Use after deploy or data change to verify cache cleared correctly.
Assertion Value
RELATIONSHIP CONTEXT
Expected Output
TTL shows remaining seconds (1-300 = cached, -2 = absent). GET shows the cached JSON with text containing "[RELATIONSHIP CONTEXT]".
Script
rdcli -h 192.168.1.151 -p 6379 TTL relationship_block:2:${CHAT_ID} && rdcli -h 192.168.1.151 -p 6379 GET relationship_block:2:${CHAT_ID} | head -c 500Run Tool
Run History
No runs yet