MCPcopy Create free account
hub / github.com/vercel/examples / set_run_payload

Function set_run_payload

python/vibe-coding-ide/backend/src/run_store.py:21–27  ·  view source on GitHub ↗

Store the base payload for a run id using Vercel Runtime Cache.

(run_id: str, payload: dict[str, Any])

Source from the content-addressed store, hash-verified

19
20
21async def set_run_payload(run_id: str, payload: dict[str, Any]) -> None:
22 """Store the base payload for a run id using Vercel Runtime Cache."""
23 await cache.set(
24 _cache_key(run_id),
25 dict(payload),
26 {"ttl": _TTL_SECONDS, "tags": [f"run:{run_id}"]},
27 )
28
29
30async def get_run_payload(run_id: str) -> dict[str, Any] | None:

Callers 1

create_runFunction · 0.90

Calls 2

_cache_keyFunction · 0.85
setMethod · 0.80

Tested by

no test coverage detected