fixup! diigo-cache: diigo counts pages from 0; migrate stored pages (schema v2)
Docs per the docs-files-api skill: a 1–2 line @file; what a declaration is or does in JSDoc on it, not in // comments or the file header. Generated-by: Claude Opus 5.5
This commit is contained in:
1 parent
2a7d0ae0cb
commit
2bb18a9e96
2 files changed
+10
-14
No files matched your search
@@ -1,8 +1,4 @@
|
||||
/**
|
||||
* @file the tests' main module — their edge: the real worker (whose own
|
||||
* edge supplies the live clock), plus the private cache's logic on a fixed
|
||||
* clock (bound as CLOCKED_DO in wrangler.tests.jsonc).
|
||||
*/
|
||||
/** @file the tests' main module: the real worker plus a fixed-clock cache. */
|
||||
import { DiigoCacheLogic } from "../src/cache.js";
|
||||
import type { CacheEnv } from "../src/cache.js";
|
||||
|
||||
@@ -13,7 +9,8 @@ export { default } from "../src/index.js";
|
||||
* never due in real time — tests run it with runDurableObjectAlarm */
|
||||
export const FIXED_NOW = Date.UTC(2099, 0, 1, 0, 0, 0);
|
||||
|
||||
/** a fixed clock that records each sleep it is asked for */
|
||||
/** the private cache's logic on a fixed clock that records each sleep it
|
||||
* is asked for (bound as CLOCKED_DO in wrangler.tests.jsonc) */
|
||||
export class FixedClockCache extends DiigoCacheLogic {
|
||||
#sleeps: number[] = [];
|
||||
|
||||
|
||||
Reference in new issue
Block a user