MCPcopy Create free account
hub / github.com/EBWi11/AgentSmith-HUB / updateComponentCache

Function updateComponentCache

web/src/stores/dataCache.js:733–740  ·  view source on GitHub ↗
(type, data)

Source from the content-addressed store, hash-verified

731
732 // Update component cache
733 updateComponentCache(type, data) {
734 if (!this.components[type]) {
735 this.components[type] = { data: [], timestamp: 0, loading: false }
736 }
737 this.components[type].data = data
738 this.components[type].timestamp = Date.now()
739 this.components[type].loading = false
740 },
741
742 // Clear all cache (but preserve UI states)
743 clearAllCache() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected