Skip to main content
POST
/
admin
/
cache
/
read
Ler chave arbitrária do cache Redis
curl --request POST \
  --url https://services.pref.rio/rmi/v1/admin/cache/read \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "citizen:12345678901"
}'
{
  "exists": true,
  "key": "<string>",
  "ttl_seconds": 123,
  "value": "<any>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Chave do cache para ler

key
string
required
Example:

"citizen:12345678901"

Response

Dados da chave do cache

exists
boolean
key
string
ttl_seconds
integer
value
any