[SR-Users] HTABLE update from DB

Ovidiu Sas osas at voipembedded.com
Sun Feb 23 18:24:49 CET 2014


It is working for sure, because I'm using it (reloading from db to refresh
memory cache).

Regards,
Ovidiu Sas
On Feb 23, 2014 11:56 AM, "Uri Shacked" <ushacked at gmail.com> wrote:

> It does not work...I tried with autoexpire=0, I tried with no autoexpires define, I Tried defining a number and see if the value is updated....
>
>
> this is my table definition:
>
> modparam("htable", "htable", "A=>size=8,dbtable=aaaaaa;initial=0,dbmobe=0;")
>
>
> I remind you i need the memory to be updated from the DB every interval, and not the DB form the memory.
>
>
> thanks.
>
>
>
> >Declare the table without autoexpire. Check again the module README.
>
> >Regards,
> >Ovidiu Sas
> >On Feb 23, 2014 11:23 AM, "Uri Shacked" <ushacked at gmail.com <http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>> wrote:
>
> >>* Hi,
> *>>>>* Following my issue with reloading data. I am thinking of a way to keep
> *>>* data updated in memory.
> *>>* I read the HTABLE module again and notice the "db_expires" option.
> *>>* It does not work for me...
> *>>>>* I try to set it so an item will expire in 60 sec, and when expired, it
> *>>* will be reloaded from DB and not deleted.
> *>>>>* Any ideas?
> *>>>>* Uri*
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140223/c05f35a5/attachment.html>


More information about the sr-users mailing list