import { QueryClient } from "@tanstack/solid-query" export const queryClient = new QueryClient({ defaultOptions: { queries: { staleTime: 1000 * 60 * 5, }, }, }) // Bump when /me or /bookmarks/all response shape changes incompatibly. export const CACHE_BUSTER = "v1" export const CACHE_STORAGE_KEY = "bookmarker.query-cache" export const CACHE_MAX_AGE = 7 * 24 * 60 * 60 * 1000 // 7 days