Write key-value pairs ยท Cloudflare Workers KV docs

To create a new key-value pair, or to update the value for a particular key, call the put() method of the KV binding on any KV namespace you have bound to your Worker code: