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

Function upsert_user_sandbox

python/vibe-coding-ide/backend/src/run_store.py:60–63  ·  view source on GitHub ↗
(user_id: str, name: str, sandbox_id: str)

Source from the content-addressed store, hash-verified

58
59
60async def upsert_user_sandbox(user_id: str, name: str, sandbox_id: str) -> None:
61 cur = await get_user_sandboxes(user_id)
62 cur[name] = sandbox_id
63 await cache.set(_user_sbx_key(user_id), cur, {"ttl": _TTL_SECONDS})
64
65
66async def remove_user_sandbox(user_id: str, name: str) -> None:

Callers 1

sandbox_createFunction · 0.90

Calls 3

get_user_sandboxesFunction · 0.85
_user_sbx_keyFunction · 0.85
setMethod · 0.80

Tested by

no test coverage detected