(serverId: string)
| 149 | } |
| 150 | |
| 151 | export 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 | } |
no test coverage detected