MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / cacheSet

Function cacheSet

ui-tui/src/components/markdown.tsx:686–692  ·  view source on GitHub ↗
(b: Map<string, ReactNode[]>, key: string, v: ReactNode[])

Source from the content-addressed store, hash-verified

684}
685
686const cacheSet = (b: Map<string, ReactNode[]>, key: string, v: ReactNode[]) => {
687 b.set(key, v)
688
689 if (b.size > MD_CACHE_LIMIT) {
690 b.delete(b.keys().next().value!)
691 }
692}
693
694function MdImpl({ cols, compact, t, text }: MdProps) {
695 const nodes = useMemo(() => {

Callers 1

MdImplFunction · 0.85

Calls 3

deleteMethod · 0.80
nextMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected