package index
A platform-agnostic multi-level index for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
index-1.3.2.tbz
sha256=0e46ebc785eb5b947bcb6e04075dda694d7e951c5ac51103e4d5fa5105df5d14
sha512=fd82ba852bb43eae8fefca2563d114bc2fa99e0ba98c828bccc2e81737a05156297b64b5894e2d0a58457a3382730a34e16cf16c844f8a6e6844c2684d79c7b5
doc/index/Index/index.html
Module Index
Source
Index
Index
is a scalable implementation of persistent indices in OCaml.
Index
provides the standard key-value interface: find
, mem
and replace
. It requires three IO instances:
- A `log` IO containing all of the recently-added bindings; this is also kept in memory.
- When the `log` IO is full, it is merged into the `index` IO. Search is done first in `log` then in `index`, which makes recently added bindings search faster.
- A `lock` IO to ensure safe concurrent access.
Signatures and implementations of caches. Make
requires a cache in order to provide instance sharing.
The exception raised when a write operation is attempted on a read_only index.
The exception is raised when a sync operation is attempted on a read-write index.
The exception raised when any operation is attempted on a closed index, except for close
, which is idempotent.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>