MCPcopy Index your code
hub / github.com/AnswerOverflow/AnswerOverflow / cacheQuestionsForSitemap

Function cacheQuestionsForSitemap

packages/core/src/sitemap.ts:151–157  ·  view source on GitHub ↗
(serverId: string)

Source from the content-addressed store, hash-verified

149}
150
151export async function cacheQuestionsForSitemap(serverId: string) {
152 const questions = await findQuestionsForSitemap(serverId);
153 const client = await Cache.getRedisClient();
154 if (!questions) return null;
155 await client.set(`questions:${serverId}`, JSONStringify(questions));
156 return questions;
157}

Callers 1

runMethod · 0.90

Calls 2

findQuestionsForSitemapFunction · 0.90
JSONStringifyFunction · 0.90

Tested by

no test coverage detected