MCPcopy Index your code
hub / github.com/CapSoftware/Cap / getEditInvalidationCallerReference

Function getEditInvalidationCallerReference

apps/web/workflows/edit-video.ts:594–603  ·  view source on GitHub ↗
(
	videoId: string,
	editSpec: VideoEditSpec,
)

Source from the content-addressed store, hash-verified

592}
593
594function getEditInvalidationCallerReference(
595 videoId: string,
596 editSpec: VideoEditSpec,
597) {
598 const editHash = createHash("sha256")
599 .update(JSON.stringify(editSpec))
600 .digest("hex")
601 .slice(0, 16);
602 return `edit-${videoId}-${editHash}`;
603}
604
605async function invalidateEditedVideoCache(
606 videoId: string,

Callers 1

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected