cURL
curl --request POST \ --url https://api.veryfront.com/projects/{project_reference}/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 project-scoped cache with optional TTL
Authentication via JWT token or API key. JWT: Get from Veryfront dashboard. API Key: Format "vf__" - create via /api-keys endpoint.
Project ID or slug
Cache key
1 - 512
Value to cache
TTL in seconds (0 = no expiry, default: 300, max: 86400)
0 <= x <= 86400
Cache set successfully