averyj / sequence_server

A simple erlang gen server for generating sequence numbers.

This URL has Read+Write access

name age message
file .git-ignore Loading commit data...
file Emakefile
file README
directory src/
directory tests/
README
A simple gen_server to generate sequence numbers. 

Just build it (erl -make) then use sequence_server:get_sequence(key) where key can be any value. If the row doesn't 
exist for that value it will create it and return the first sequence number. It uses mnesia for the backing store with 
disc_copies.