// Generated by bynkc — do not edit by hand.
// composition root for `cache.store` Worker.

import { type KVNamespace, type ServiceBinding } from "../../runtime.js";
import * as handlers from "./handlers.js";
import * as bynk_cloudflare__binding from "../../bynk/cloudflare.binding.js";

export interface Env {
  KV: KVNamespace;
}

export function compose(env: Env) {
  const Kv = new bynk_cloudflare__binding.WorkersKv(env);
  const deps = { Kv };
  return {
    async cache(key: any, value: any) {
      return handlers.cache.call(key, value, deps);
    },
  };
}
