Skip to content

Instantly share code, notes, and snippets.

@brendanlong
brendanlong / lru_cache.ml
Created April 24, 2020 22:11
OCaml Lru_cache using Core v0.11
(** Replacement for deprecated Core_extended.Cache *)
open Core
module type S = sig
type key
type 'a t
val make : max_entries:int -> 'a t
val lookup : 'a t -> key -> 'a option
val set : 'a t -> key:key -> data:'a -> unit
@brendanlong
brendanlong / keybase.md
Created February 9, 2015 20:10
Keybase Proof

Keybase proof

I hereby claim:

  • I am brendanlong on github.
  • I am brendanlong (https://keybase.io/brendanlong) on keybase.
  • I have a public key whose fingerprint is 8238 E68C 4D76 B655 45FD F577 41E3 515E 050E 701F

To claim this, I am signing this object: