cURL
curl --request POST \ --url https://api.veryfront.com/cache/set \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "key": "<string>", "value": "<string>", "ttl": 43200 } '
{ "success": true }
Store a value in the user-scoped cache with optional TTL. Values larger than 1KB are automatically compressed.
Authentication via JWT token or API key. JWT: Get from Veryfront dashboard. API Key: Format "vf__" - create via /api-keys endpoint.
Cache key
1 - 512
^[a-zA-Z0-9_:.\-/]+$
Value to cache (typically JSON-serialized)
TTL in seconds (0 = no expiry, default: 300, max: 86400)
0 <= x <= 86400
Value stored successfully