I figured it out by reading throught the plugins docs it these ones should be updated to include you

I figured it out by reading throught the plugins docs it these ones should be updated to include you need to process like this
export default eventHandler(async (event) => {
const { ARCKV } = event.context.cloudflare.env;

console.log(ARCKV)
let test = await ARCKV.list()
console.log(test)

let ctr = (await ARCKV.get("counter")) || 0;
await ARCKV.put("counter", ++ctr % 100);

return `counter: ${(await ARCKV.get("counter")) || 0}`;
});
export default eventHandler(async (event) => {
const { ARCKV } = event.context.cloudflare.env;

console.log(ARCKV)
let test = await ARCKV.list()
console.log(test)

let ctr = (await ARCKV.get("counter")) || 0;
await ARCKV.put("counter", ++ctr % 100);

return `counter: ${(await ARCKV.get("counter")) || 0}`;
});
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?