Redis
DoubleDino supports Redis key lookup through the /redis endpoint.
Provide a Redis key and DoubleDino returns the value after transformation.
Key lookup
curl -G "http://localhost:8080/redis" \
--data-urlencode "key=cache:user:123" \
-H "x-api-key: your-api-key"
The key is used to retrieve the value from Redis. The returned value is transformed before it reaches the client.
Key patterns
Redis key patterns are supported.
curl -G "http://localhost:8080/redis" \
--data-urlencode "key=cache:user:*" \
-H "x-api-key: your-api-key"
This can return values for multiple matching keys.
JSON values
If a Redis value contains JSON, DoubleDino transforms nested values while preserving the JSON structure.
For example:
{
"user_id": 123,
"preferences": {
"theme": "dark"
}
}
can become:
{
"user_id": 847,
"preferences": {
"theme": "dark"
}
}
The surrounding structure remains intact.
Read-only
DoubleDino does not modify Redis.
The requested key is used to retrieve the value, and the returned value is transformed before it reaches the client.