MCPcopy
hub / github.com/simstudioai/sim / touch

Method touch

apps/sim/lib/core/utils/browser-storage.ts:113–117  ·  view source on GitHub ↗
(workspaceId: string)

Source from the content-addressed store, hash-verified

111 private static readonly KEY = STORAGE_KEYS.WORKSPACE_RECENCY
112
113 static touch(workspaceId: string): void {
114 const map = WorkspaceRecencyStorage.getAll()
115 map[workspaceId] = Date.now()
116 BrowserStorage.setItem(WorkspaceRecencyStorage.KEY, map)
117 }
118
119 static getAll(): Record<string, number> {
120 return BrowserStorage.getItem<Record<string, number>>(WorkspaceRecencyStorage.KEY, {})

Callers 1

useWorkspaceManagementFunction · 0.80

Calls 2

getAllMethod · 0.80
setItemMethod · 0.80

Tested by

no test coverage detected