MCPcopy
hub / github.com/chartbrew/chartbrew / set

Method set

server/controllers/AuthCacheController.js:5–17  ·  view source on GitHub ↗
(key, user, type = "AUTH_CACHE")

Source from the content-addressed store, hash-verified

3
4class AuthCacheController {
5 set(key, user, type = "AUTH_CACHE") {
6 return db.AuthCache.upsert({
7 key,
8 user,
9 type,
10 }, { returning: ["*"] })
11 .then((created) => {
12 return new Promise((resolve) => resolve(created));
13 })
14 .catch((e) => {
15 return new Promise((resolve, reject) => reject(e));
16 });
17 }
18
19 get(key) {
20 return db.AuthCache.findOne({

Callers 6

updateFunction · 0.45
updateDashboardsFunction · 0.45
checkSnapshotsFunction · 0.45
getTableDataMethod · 0.45
getConfigurationMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected