ocaml-multicore / kcas

Software Transactional Memory for OCaml
https://ocaml-multicore.github.io/kcas/
ISC License
109 stars 11 forks source link

LRU-cache example #131

Closed polytypic closed 1 year ago

polytypic commented 1 year ago

This PR adds a more fleshed out example of a LRU cache. The brief example in the README is also updated to use a blocking set operation. Use of blocking set makes it easy to allow having zero capacity, which can be useful as a closable communication primitive.