Skip to main content
POST
Set Cache Entry

Authorizations

Authorization
string
header
required

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

Path Parameters

project_reference
string
required

Body

application/json
key
string
required

Cache key.

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

String value to cache.

ttl
number

TTL in seconds. 0 disables expiry. Defaults to 300. Max 86400.

Required range: 0 <= x <= 86400

Response

Cache set successfully.

success
boolean
required