default to json

main
Ethan Niser 2023-09-16 17:03:04 -05:00
parent 6da02e2e31
commit ec0e92a574
1 changed files with 1 additions and 1 deletions

@ -170,7 +170,7 @@ export function persistedCache<T extends () => Promise<any>>(
key: string,
options?: CacheOptions
): T {
const persist = options?.persist ?? "memory";
const persist = options?.persist ?? "json";
const revalidate = options?.revalidate ?? Infinity;
const tags = options?.tags ?? [];