Stdlib.Ephemeron(3) OCaml library Stdlib.Ephemeron(3)

# [NAME](#NAME)

Stdlib.Ephemeron - no description

# [Module](#Module)

Module Stdlib.Ephemeron

# [Documentation](#Documentation)

Module **Ephemeron**  
: **(module Stdlib\_\_Ephemeron)**

Unsynchronized accesses

Unsynchronized accesses to a weak hash table may lead to an invalid weak hash table state. Thus, concurrent accesses to a weak hash table must be synchronized (for instance with a **Mutex.t** ).

*module type S =* **sig end**

The output signature of the functors **Ephemeron.K1.Make** and **Ephemeron.K2.Make** . These hash tables are weak in the keys. If all the keys of a binding are alive the binding is kept, but if one of the keys of the binding is dead then the binding is removed.

*module type SeededS =* **sig end**

The output signature of the functors **Ephemeron.K1.MakeSeeded** and **Ephemeron.K2.MakeSeeded** .

*module K1 :* **sig end**

Ephemerons with one key.

*module K2 :* **sig end**

Ephemerons with two keys.

*module Kn :* **sig end**

Ephemerons with arbitrary number of keys of the same type.

2026-10-23 OCamldoc

---

Document: Stdlib.Ephemeron(3o) from ocaml 5.5.2-r0 (Chainguard OS)
Source: https://github.com/ocaml/ocaml
