Skip to main content

CLOUDFLARE_ADAPTER_SRC

Constant CLOUDFLARE_ADAPTER_SRC 

Source
pub const CLOUDFLARE_ADAPTER_SRC: &str = "adapter bynk.cloudflare {\n\texports capability { Kv }\n\n\t---\n\tA Cloudflare Workers KV namespace: a key/value store with optional per-entry\n\texpiry and prefix listing.\n\t---\n\tcapability Kv {\n\t\tfn get(key: String) -> Effect[Option[String]]\n\t\tfn put(key: String, value: String) -> Effect[()]\n\t\tfn putTtl(key: String, value: String, ttlSeconds: Int) -> Effect[()]\n\t\tfn delete(key: String) -> Effect[()]\n\t\tfn list(prefix: Option[String]) -> Effect[List[String]]\n\t}\n\n\tprovides Kv = WorkersKv\n}\n";
Expand description

The first-party Cloudflare platform adapter (v0.19): the platform’s real infrastructure capabilities, as they are — no portable intersection (decision 0016). The v0.19 surface was the minimal, collection-free Kv (decision 0023); v0.23 adds the list drain and putTtl (0050/0051); structured values are v0.22-codec composition, and Queue remains its own future increment. Like the bynk surface it has no binding clause — the toolchain supplies the binding.