cloudflare icon indicating copy to clipboard operation
cloudflare copied to clipboard

[Feature] Add support for KV namespace write key value expiration and expiration_ttl

Open hnrqer opened this issue 3 years ago • 0 comments

Looks like this isn't supported currently in the lib: https://api.cloudflare.com/#workers-kv-namespace-write-key-value-pair

Write a value identified by a key... Existing values and expirations will be overwritten. If neither expiration nor expiration_ttl is specified, the key-value pair will never expire. If both are set, expiration_ttl is used and expiration is ignored.

PUT accounts/:account_identifier/storage/kv/namespaces/:namespace_identifier/values/:key_name?expiration=:expiration&expiration_ttl=:expiration_tt

hnrqer avatar Nov 18 '21 01:11 hnrqer