MCPcopy
hub / github.com/tinyplex/tinybase / constructKey

Function constructKey

src/persisters/persister-durable-object-storage/index.ts:39–40  ·  view source on GitHub ↗
(type: StorageKeyType, ...ids: Ids)

Source from the content-addressed store, hash-verified

37 onIgnoredError?: (error: any) => void,
38): DurableObjectStoragePersister => {
39 const constructKey = (type: StorageKeyType, ...ids: Ids) =>
40 storagePrefix + type + slice(jsonStringWithUndefined(ids), 1, -1);
41
42 const deconstructKey = (
43 key: string,

Callers 1

setPersistedFunction · 0.85

Calls 2

sliceFunction · 0.90
jsonStringWithUndefinedFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…