https://github.com/beevik/registry
A fault-tolerant key-value registry written in elixir
https://github.com/beevik/registry
Last synced: about 1 year ago
JSON representation
A fault-tolerant key-value registry written in elixir
- Host: GitHub
- URL: https://github.com/beevik/registry
- Owner: beevik
- Created: 2016-07-16T21:50:00.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2023-05-28T05:44:48.000Z (about 3 years ago)
- Last Synced: 2025-01-25T11:26:46.440Z (over 1 year ago)
- Language: Elixir
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/beevik/registry)
Registry
========
Registry is an Elixir implementation of a monitored process registry.
It allows processes to be associated with names, which may be any type
(except for a pid). When a registered process terminates, its association
is automatically removed.
The registry is designed to be used with Elixir GenServer
[:via tuples](http://elixir-lang.org/docs/stable/elixir/GenServer.html#module-name-registration).
## Examples
Here is how to create a registry:
```elixir
Registry.start_link()
```
Here is how to add an entry to the registry:
```elixir
Registry.register_name(:foo, pid)
```
Here is how to remove an entry from the registry:
```elixir
Registry.unregister_name(:foo)
```
Here is how to look up an entry in the registry:
```elixir
pid = Registry.whereis_name(:foo)
```