MCPcopy Create free account
hub / github.com/msgbyte/tailchat / getCachedUserSettings

Function getCachedUserSettings

client/shared/cache/cache.ts:162–172  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160 * 获取用户配置
161 */
162export async function getCachedUserSettings() {
163 const data = await queryClient.fetchQuery(
164 [CacheKey.userSettings],
165 () => getUserSettings(),
166 {
167 staleTime: 10 * 60 * 1000, // 缓存10分钟
168 }
169 );
170
171 return data;
172}

Callers 3

index.tsxFile · 0.85
notify.tsFile · 0.85
index.tsxFile · 0.85

Calls 1

getUserSettingsFunction · 0.90

Tested by

no test coverage detected