Generic TTL cache with Eio
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

wal, block, sse, zephyr: remove [mutable] from never-reassigned fields

Warning 69 (unused-field, mutable-never-assigned). Four independent
record fields were flagged as mutable but the code only mutates their
referents in place, never rebinds the record slot itself:

- ocaml-wal/lib/wal.ml: [t.file] (the Eio file resource; methods call
Eio.File.pwrite_all etc., the slot is set once at open time).
- ocaml-block/lib/block.ml: [Memory.state.data] (the backing bytes,
written via Bytes.blit_string; [Bytes.t] is already mutable).
- ocaml-sse/lib/sse.ml: [Parser.t.data_buf] (a Buffer.t, written via
Buffer.add_*; the slot never changes).
- ocaml-zephyr/lib/zephyr.ml: drop [mode : Read | Write] entirely —
set at open-time, read nowhere. The open_read / open_write
constructors already distinguish the two call shapes, so mode
tracking was redundant.

+6 -2
+2 -1
cache.opam
··· 9 9 license: "MIT" 10 10 tags: ["org:blacksun" "storage"] 11 11 depends: [ 12 - "dune" {>= "3.0"} 12 + "dune" {>= "3.21"} 13 13 "ocaml" {>= "5.1"} 14 14 "eio" {>= "1.0"} 15 15 "logs" {>= "0.7"} ··· 31 31 "@doc" {with-doc} 32 32 ] 33 33 ] 34 + x-maintenance-intent: ["(latest)"] 34 35 x-quality-build: "2026-04-15" 35 36 x-quality-test: "2026-04-15"
+3
dune
··· 1 + (env 2 + (dev 3 + (flags :standard %{dune-warnings})))
+1 -1
dune-project
··· 1 - (lang dune 3.0) 1 + (lang dune 3.21) 2 2 3 3 (name cache) 4 4