Yeah I saw I just don't get how it can for a stateful system, that's amazing.
Yeah I saw I just don't get how it can for a stateful system, that's amazing.

addEventListener means you are in service worker formatexport default { fetch } means you are in module formatenv.KV where env is the second parameter of the fetch function.
addEventListenerexport default { fetch }env.KVexport default {
async fetch(request, env) {
const setCache = (key, data) => env.EXAMPLE_TODOS.put(key, data);
const getCache = key => env.EXAMPLE_TODOS.get(key);
}
};