Select the types of activity you want to include in your feed.
monopam: fix Remote_cache.mli MDX example
The doc example referenced [Remote_cache.X] directly, but mdx compiles the block against [Monopam] (the wrapping library), so the unqualified module was unbound. Open [Monopam] inside the block.
···2020 {2 Example with mock time}
21212222 {[
2323+ let open Monopam in
2324 let time = ref 0.0 in
2425 let now () = !time in
2526 let cache = Remote_cache.v ~ttl:60.0 ~now () in
2626-2727- (* Set a value *)
2827 let url = Uri.of_string "https://github.com/ocaml/ocaml.git" in
2928 Remote_cache.set cache ~url ~branch:"trunk" ~hash:"abc123";
3030-3131- (* Get it back immediately *)
3229 assert (Remote_cache.find cache ~url ~branch:"trunk" = Some "abc123");
3333-3434- (* Advance time past TTL *)
3530 time := 61.0;
3631 assert (Remote_cache.find cache ~url ~branch:"trunk" = None)
3732 ]} *)