Has expiration_ttl now gone from the V4
Has expiration_ttl now gone from the V4 API (for a KV write with metadata). I can only see it in the OpenAPI spec comment and it doesn't seem to work in practice anymore.
3 Replies
Are you looking for the cacheTtl param? https://developers.cloudflare.com/kv/api/read-key-value-pairs/#cachettl-parameter
Cloudflare Docs
Read key-value pairs · Cloudflare Workers KV
To get the value for a given key, call the get() method on any KV namespace you have bound to your Worker code:
No, I'm looking for expirationTTL which you used to be able to set on an entry when you write to KV, so the item automatically expires.
@Darrell -
and it doesn't seem to work in practice anymore.Which API are you referring to here? The v4 REST API when you say it doesn't work? The Workers KV API?