{"id":"compute.graph--graphCachePolicy","name":"graphCachePolicy","owner":"yeho","package":"compute.graph","kind":"thing","signature":"external thing graphCachePolicy","description":"A graph cache policy record carrying key, scope, shareAcrossNodes, shareAcrossFallback, note.","context":"Describe compute work as an explicit graph with package-owned validation and scheduling metadata.","parameters":[],"returns":"void","members":[{"name":"key","kind":"field","type":"text","description":"Stores key as text.","signature":"text key","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"scope","kind":"field","type":"text","description":"Stores scope as text.","signature":"text scope","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"shareAcrossNodes","kind":"field","type":"bool","description":"Stores share across nodes as bool.","signature":"bool shareAcrossNodes","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"shareAcrossFallback","kind":"field","type":"bool","description":"Stores share across fallback as bool.","signature":"bool shareAcrossFallback","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"note","kind":"field","type":"text","description":"Stores note as text.","signature":"text note","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"graphCachePolicy","kind":"constructor","parameters":[{"name":"key","type":"text","description":"Key."},{"name":"scope","type":"text","description":"Scope."},{"name":"shareAcrossNodes","type":"bool","description":"Share across nodes."},{"name":"shareAcrossFallback","type":"bool","description":"Share across fallback."},{"name":"note","type":"text","description":"Note."}],"returns":"void","signature":"graphCachePolicy(text key, text scope, bool shareAcrossNodes, bool shareAcrossFallback, text note)","description":"Graph cache policy.","tags":["thing","constructor","compute.graph"],"updated":"2026-09-09"},{"name":"Describe","kind":"method","parameters":[],"returns":"text","signature":"Describe() returns text","description":"Describe.","tags":["thing","method","compute.graph"],"exampleId":"method-Describe-6","updated":"2026-09-09"}],"tags":["compute","compute.graph","cpu","graph","method","source-example","thing","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/compute/graph/graph.yh","line":136,"sha256":"95bb29f53014a420ab0b1dfc18800f567a8e06f197650f133522eb254009014f"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use graphCachePolicy","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using compute.graph\n\n// Describe compute work as an explicit graph with package-owned validation and scheduling metadata.\ngraphCachePolicy sample = graphCachePolicy(\"key\", \"scope\", true, true, \"note\")\nConsole.Log(Text.From(sample.key))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_graph__graphcachepolicy\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.buffer\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/buffer\"\n\n[[dependencies]]\npackage = \"compute.device\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/device\"\n\n[[dependencies]]\npackage = \"compute.graph\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/graph\"\n\n[[dependencies]]\npackage = \"compute.kernels\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/kernels\"\n\n[[dependencies]]\npackage = \"compute.tensor\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/tensor\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"c2a63418284c0c2592726e8952abf507d667239d02043b30f21dd9af0b99780d","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-6","title":"graphCachePolicy.Describe","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.graph\n\n// Describe.\ngraphCachePolicy instance = graphCachePolicy(\"key\", \"scope\", true, true, \"note\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_graph__graphcachepolicy\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.buffer\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/buffer\"\n\n[[dependencies]]\npackage = \"compute.device\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/device\"\n\n[[dependencies]]\npackage = \"compute.graph\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/graph\"\n\n[[dependencies]]\npackage = \"compute.kernels\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/kernels\"\n\n[[dependencies]]\npackage = \"compute.tensor\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/tensor\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"9909d8fd4c44b9df896fd5cc36bb1e6756157b20e4b7e279511a8264906fbbf9","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["key","scope","shareAcrossNodes","shareAcrossFallback","note","graphCachePolicy","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.graph--graphCachePolicy","json":"https://demonhunterlabs.com/reference/items/compute.graph--graphCachePolicy.json","markdown":"https://demonhunterlabs.com/reference/text/compute.graph--graphCachePolicy.md"}
