MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / archiveStore

Function archiveStore

src/services/SessionMemory/multiStore.ts:151–159  ·  view source on GitHub ↗
(store: string)

Source from the content-addressed store, hash-verified

149
150/** Archive a store by renaming it to <store>.archived */
151export function archiveStore(store: string): void {
152 validateStoreName(store)
153 const storeDir = getStoreDir(store)
154 if (!existsSync(storeDir)) {
155 throw new Error(`Store "${store}" does not exist`)
156 }
157 const archivedDir = storeDir + '.archived'
158 renameSync(storeDir, archivedDir)
159}
160
161/** Write an entry to a store. Creates the store dir if needed. */
162export function setEntry(store: string, key: string, value: string): void {

Callers 1

multiStore.test.tsFile · 0.50

Calls 4

validateStoreNameFunction · 0.85
getStoreDirFunction · 0.85
existsSyncFunction · 0.85
renameSyncFunction · 0.85

Tested by

no test coverage detected