We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be11067 commit 0f70689Copy full SHA for 0f70689
packages/idb-cache/src/index.ts
@@ -94,9 +94,9 @@ export interface IDBCacheConfig {
94
95
const DB_VERSION = 2;
96
const DEFAULT_CHUNK_SIZE = 25000; // recommendation: keep under 100KiB (cf. https://surma.dev/things/is-postmessage-slow/)
97
-const DEFAULT_GC_TIME = 7 * 24 * 60 * 60 * 1000;
+const DEFAULT_GC_TIME = 7 * 24 * 60 * 60 * 1000; // 7 days
98
const DEFAULT_PBKDF2_ITERATIONS = 100000;
99
-const CLEANUP_INTERVAL = 60 * 1000;
+const CLEANUP_INTERVAL = 60 * 1000; // 1 minute
100
const DURATION_THRESHOLD = 200;
101
102
const isSubtleCryptoSupported = crypto?.subtle;
0 commit comments