MCPcopy Index your code
hub / github.com/codebymitch/TitanBot / setInDb

Function setInDb

src/utils/database.js:180–188  ·  view source on GitHub ↗
(key, value, ttl = null)

Source from the content-addressed store, hash-verified

178}
179
180export async function setInDb(key, value, ttl = null) {
181 try {
182 await db.set(key, value, ttl);
183 return true;
184 } catch (error) {
185 logger.error(`Error setting value for key ${key}:`, error);
186 return false;
187 }
188}
189
190export async function deleteFromDb(key) {
191 try {

Callers 14

generateCaseIdFunction · 0.90
storeModerationCaseFunction · 0.90
getOrCreateSharedListFunction · 0.90
executeFunction · 0.90
handleAddNoteFunction · 0.90
handleRemoveNoteFunction · 0.90
handleClearNotesFunction · 0.90
addWarningMethod · 0.90
removeWarningMethod · 0.90
clearWarningsMethod · 0.90
executeFunction · 0.90
insertVerificationAuditFunction · 0.85

Calls 1

setMethod · 0.45

Tested by

no test coverage detected