MCPcopy Index your code
hub / github.com/codecombat/codecombat / writeActivityToCache

Function writeActivityToCache

app/lib/user-utils.js:134–139  ·  view source on GitHub ↗
(userId, activityName, activity)

Source from the content-addressed store, hash-verified

132}
133
134function writeActivityToCache (userId, activityName, activity) {
135 const key = getActivityStatusCacheKey(userId)
136 const cache = readActivityStatusCache(userId)
137 cache[activityName] = activity
138 localStorage.save(key, cache, 0)
139}
140
141function clearActivityStatusCache (userId, { prefix } = {}) {
142 const key = getActivityStatusCacheKey(userId)

Callers

nothing calls this directly

Calls 3

readActivityStatusCacheFunction · 0.85
saveMethod · 0.45

Tested by

no test coverage detected