Muki Kiboigo
fe9d65cf3e
make get and evict return errorable
2026-06-08 08:14:13 -07:00
Muki Kiboigo
c06dd755b6
Cache.revalidate -> Cache.renew
2026-06-08 07:14:18 -07:00
Muki Kiboigo
dc6fc5b353
add Cache.revalidate + supporting logic
2026-06-08 07:14:16 -07:00
Muki Kiboigo
f0bc85f117
add Cache Eviction
2026-05-25 11:23:25 -07:00
Muki Kiboigo
14e1f1bcf6
add clear fn to Cache and FsCache
2026-05-07 09:00:33 -07:00
Karl Seguin
8509b112b8
Various small fixes
...
Extracted from https://github.com/lightpanda-io/browser/pull/2242
2026-04-25 13:22:41 +08:00
Karl Seguin
0a8f4ff75f
Remove unused imports
...
As a general rule, I keep `std` if its there and unused, mostly for debug.print
debugging.
2026-04-23 16:21:56 +08:00
Karl Seguin
2d20e57f80
Change all @import("...../log.zig") to const log = lp.log;
...
@import("lightpanda") where needed.
Would also like to do this for String, Page, Session and js which all stand out
as types that are use across the codebase.
I know that a few devs are doing this in new work and I haven't heard anyone
voice an objection.
2026-04-20 12:40:04 +08:00
Adrià Arrufat
182447c907
cache: add log filter to garbage file test
2026-04-08 19:36:29 +02:00
Muki Kiboigo
13ea4d1ee3
more expressive cache logging
2026-04-03 07:23:32 -07:00
Muki Kiboigo
f098a991a8
remove cache revalidation stubs
2026-04-03 07:23:30 -07:00
Muki Kiboigo
7b5e4d6f52
add Vary support
2026-04-03 07:23:30 -07:00
Muki Kiboigo
9ffc99d6a2
add more FsCache tests
2026-04-03 07:23:30 -07:00
Muki Kiboigo
d65a4b09f3
better logging for cache
2026-04-03 07:23:30 -07:00
Muki Kiboigo
6a57d69359
switch to single file cache
2026-04-03 07:23:30 -07:00
Muki Kiboigo
7edb24e54d
use wyhash for power of two lock stripes
2026-04-03 07:23:29 -07:00
Muki Kiboigo
a60932bbe0
require timestamp passed in with cache request
2026-04-03 07:23:29 -07:00
Muki Kiboigo
77e9f5caf7
remove unused cache method on fs cache
2026-04-03 07:23:29 -07:00
Muki Kiboigo
cedc894445
add basic fs cache get/put test
2026-04-03 07:23:29 -07:00
Muki Kiboigo
9d62e58c9a
check age on fs cache get
2026-04-03 07:23:29 -07:00
Muki Kiboigo
65f77af84d
shortcircuit a lot of caching checks
2026-04-03 07:23:29 -07:00
Muki Kiboigo
557a4458a4
use CacheRequest instead of key
2026-04-03 07:23:28 -07:00
Muki Kiboigo
ce620e208d
add striped lock to FsCache
2026-04-03 07:23:28 -07:00
Muki Kiboigo
3eb05fdd1a
use writer for fs cache body file
2026-04-03 07:23:28 -07:00
Muki Kiboigo
186fdee59b
use json for fs cache metadata file
2026-04-03 07:23:28 -07:00
Muki Kiboigo
3c8bb5bc00
use sha256 instead of wyhash
2026-04-03 07:23:28 -07:00
Muki Kiboigo
18d347e247
use CacheControl and Vary
2026-04-03 07:23:27 -07:00
Muki Kiboigo
29dfbbfdea
cache headers along with response
2026-04-03 07:23:27 -07:00
Muki Kiboigo
41a24623fa
add basic FsCache impl
2026-04-03 07:23:27 -07:00