Skip to main content
POST
Set User Cache Entry

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