Skip to main content
POST
/
cache
/
set
Set User Cache Entry
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
}

Documentation Index

Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use a JWT bearer token or a Veryfront API key in the Authorization header.

Body

application/json
key
string
required

User-scoped cache key to write.

Required string length: 1 - 512
Pattern: ^[a-zA-Z0-9_:.\-/]+$
value
string
required

String value to cache. JSON should be serialized before sending.

ttl
number

TTL in seconds. Use 0 for no expiry. Defaults to 300. Maximum 86400.

Required range: 0 <= x <= 86400

Response

User-scoped cache value stored successfully.

success
boolean
required