[erlang-questions] how: Purging old records from Mnesia table
Thu Mar 6 16:11:35 CET 2008
I'm working on simple caching server. Allowing to specify if and when
item will expire.
On 3/6/08, Ulf Wiger (TN/EAB) <ulf.wiger@REDACTED> wrote:
> Gleb Peregud skrev:
> > After checking source of timer module i can see it is implemented
> > using ordered_set ets table. This table is used as a queue and
> > gen_server module is pulling data at necessary moments (it is the same
> > as my idea in point 3). It seems to be a good choice :)
> > Hence it is enough to use timer:send_after()
> I don't know if it's what you're after, but I've been (slowly)
> working on a scheduler module based on mnesia.
> It's not ready, and wholly undocumented, but for those who
> enjoy source-as-documentation, the work in progress can be
> seen at:
> (It's in ErlHive, but there really isn't that much that's
> erlhive-specific about it.)
> The idea is that you should be able to register calendar-like
> 'appointments' - repeating if necessary - and tie them to actions that
> are fired at the right moment.
> Ulf W
Every minute is to be grasped.
Time waits for nobody.
-- Inscription on a Zen Gong
More information about the erlang-questions