Hi

I guess you can store the property values in a simple config file.
You can read the values using file:consult and writting back with Joe's
unconsult(File, L) ->
  {ok, S} = file:open(File, write),
  lists:foreach(fun(X) -> io:format(S, "~p.~n",[X]) end, L),
  file:close(S).
To enable concorrent access you can restrict access to the file to a single process (responsible for making the property values available to the remaining processes).

Cheers,
Davide :)

On Sat, Jan 10, 2009 at 1:36 AM, Edward Stow <ed.stow@gmail.com> wrote:
Hi

I have a small yaws application that needs to store a small number (3
or 4) property values.

I was hoping to find something like pythons anydb [anydbm ?] module
that allows access from a property key to retrieve or set the keys
value.

The values will be updated during the application.

Concurrent access may need to be considered but is not critical.

Mensia and Dets seem overkill for my needs.

Any alternative / suggestions.

--
Edward Stow

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list