Skip to content

Commit 0f70689

Browse files
committed
docs: add a few comments
1 parent be11067 commit 0f70689

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/idb-cache/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ export interface IDBCacheConfig {
9494

9595
const DB_VERSION = 2;
9696
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;
97+
const DEFAULT_GC_TIME = 7 * 24 * 60 * 60 * 1000; // 7 days
9898
const DEFAULT_PBKDF2_ITERATIONS = 100000;
99-
const CLEANUP_INTERVAL = 60 * 1000;
99+
const CLEANUP_INTERVAL = 60 * 1000; // 1 minute
100100
const DURATION_THRESHOLD = 200;
101101

102102
const isSubtleCryptoSupported = crypto?.subtle;

0 commit comments

Comments
 (0)