github.com/mirage/index ↗
A platform-agnostic multi-level index
Open this visualization on its own page →
Contributors
10
Lines of Code
1,045
From
2019-06-28
To
2020-12-21
About mirage/index
Index is a scalable implementation of persistent indices written in OCaml that provides a key-value storage interface. The library is designed to be platform-agnostic, accepting arbitrary IO implementations and user-defined content types, allowing developers to adapt it to their specific storage needs and environments. It implements instance sharing, enabling multiple OCaml runtimes to safely access a common singleton instance of an index through lock file-based concurrency management that supports multiple readers but enforces single-writer access.
The project is part of the Mirage ecosystem and targets developers working with OCaml who need robust, persistent indexing for applications ranging from databases to file systems. The multi-level index structure provides scalability while maintaining safe concurrent access patterns, making it suitable for systems that require reliable persistent storage with managed contention between readers and writers.