Skip to content

wcummings/hostess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hostess

A simple table manager

Design based on Steve Vinoski's blog post, "Don't Lose Your ets Tables": http://steve.vinoski.net/blog/2011/03/23/dont-lose-your-ets-tables/

Usage

Hostess creates a server, which manages your table, and an additional process for each table. These processes are registered with the same name as the table.

To create a new hostess table:

hostess:new(my_table).

All hostess tables are public, so you can access the table directly with ets.

If you'd like to access the table through its parent process, use the transaction/1 operation:

hostess:transaction(my_table, fun (Tbl) -> ets:insert(Tbl, {test, 1}) end).

To delete a table:

hostess:delete(my_table).

About

A simple Erlang ets table manager

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages