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

Function getFromDb

src/utils/database.js:170–178  ·  view source on GitHub ↗
(key, defaultValue = null)

Source from the content-addressed store, hash-verified

168}
169
170export async function getFromDb(key, defaultValue = null) {
171 try {
172 const value = await db.get(key);
173 return value === null ? defaultValue : value;
174 } catch (error) {
175 logger.error(`Error getting value for key ${key}:`, error);
176 return defaultValue;
177 }
178}
179
180export async function setInDb(key, value, ttl = null) {
181 try {

Callers 15

generateCaseIdFunction · 0.90
storeModerationCaseFunction · 0.90
getModerationCasesFunction · 0.90
getOrCreateSharedListFunction · 0.90
executeFunction · 0.90
executeFunction · 0.90
addWarningMethod · 0.90
getWarningsMethod · 0.90
removeWarningMethod · 0.90
clearWarningsMethod · 0.90
refreshSharedTodoMessageFunction · 0.90
executeFunction · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected