Get redis key¶
Reads values you stored with set redis key from the external Redis of API Maker (the one which also holds the cache of the APIs). Keys are kept in a namespace of the account, so two accounts never see each other's keys.
| Method | POST |
| URL | /api/system-api/admin/get-redis-key : admin is the user path of your account |
| Body | { keys } |
| Answer | data : the value (a string, null when the key is not there), or an array of values |
| From code | g.sys.cache.getKey |
The call¶
- Values are strings :
JSON.parsewhat you stored as JSON.
From code¶
Several keys at once¶
- Get multiple redis keys values.
Access, headers and errors¶
- Over HTTP, a system API answers only once its settings open it :
TOKEN_ACCESS(the token of an API user whose group grants this system API) orIS_PUBLIC. Without settings it isNO_ACCESS: only your code (g.sys) and the admin panel reach it. - The settings can also keep the answer in the cache, or ask for the token of a person (
authProviders). Pre and post hooks run around it, as around any API. - It takes the request headers and answers the envelope.
401: no valid token, or the API isNO_ACCESS.403: no group grants it.400: the body is wrong, and the message names the key.
Related : All APIs · System API settings · System APIs from code