registry
registry
C library
registry
Library summary
Store and backup key-value pairs
Description
This module provides support for storing key-value pairs in a table known as a registry, backing up registries to Mnesia in an atomic manner, and later restoring the contents of a registry from Mnesia.
Exports
ei_reg *ei_reg_open(size)
Types:
int size;
Open (create) a registry. The registry will be initially empty. Use ei_reg_close()
to close the registry later.
size
is the approximate number of objects you intend to store in the registry. Since the registry uses a hash table with collision chaining, there is no absolute upper limit on the number of objects that can be stored in it. However for reasons of efficiency, it is a good idea to choose a number that is appropriate for you