Write Data to Cloudflare Workers KV Store with BINDING.put

Share this video with your friends

Send Tweet

Now that we have our database setup, we need to be able to write data to that database. Firstly, we need to understand the binding concept. Secondly, we are going to use .put() to write that data to our database. Remember that .put() is an async function so we need to await it for it to work in the way that we want it to.