SurfSense/surfsense_web/lib/query-client/cache-keys.ts
2025-11-20 08:17:57 +02:00

11 lines
392 B
TypeScript

export const cacheKeys = {
activeSearchSpace: {
chats: (searchSpaceId: string) => ["active-search-space", "chats", searchSpaceId] as const,
activeChat: (chatId: string) => ["active-search-space", "active-chat", chatId] as const,
podcasts: (searchSpaceId: string) =>
["active-search-space", "podcasts", searchSpaceId] as const,
},
auth: {
user: ["auth", "user"] as const,
},
};