Palbase Cache · API
/cache/entryRead an entry
Reads the entry of key. A key that holds nothing, or whose entry ran out, is not an error: the answer says found: false.
Called by your server, with the project's secret key.
Query
keystring · requiredThe entry's key: UTF-8 text, 512 bytes at most. It is a query parameter, which a request's log line does not keep.curl -X GET "https://<your-ref>.palbase.studio/cache/entry" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200The entry, or that there is none
400The key is missing, too long or not UTF-8; or the body is not the operation's
401Missing or invalid API key
403Not the project's secret key, or the secret key with a user's token beside it (`secret_key_required`)
429Over the project's cache calls a second or its bytes a second (`rate_limited`); retrying is safe after Retry-After
503The cache could not be reached (`cache_unavailable`), or takes no more at this moment (`cache_busy`); retrying is safe after Retry-After
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation GetCacheEntry of cache's contract.