MCPcopy Index your code
hub / github.com/chartbrew/chartbrew / deserialize

Function deserialize

server/controllers/DataRequestCacheController.js:8–16  ·  view source on GitHub ↗
(rawValue)

Source from the content-addressed store, hash-verified

6const cacheKey = (drId) => `${CACHE_PREFIX}:v${CACHE_SCHEMA_VERSION}:${drId}`;
7
8const deserialize = (rawValue) => {
9 if (!rawValue) return false;
10
11 if (typeof rawValue === "string") {
12 return JSON.parse(rawValue);
13 }
14
15 return rawValue;
16};
17
18const findLast = async (drId, includeData = true) => {
19 try {

Callers 1

findLastFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected