xapcache functions in lua

Hi,

after a long day of searching for the error, I found, that the functions for xap cache access

  • xapcache_find
  • xapcache_getvalue
  • xapcache_gettime

as described in http://www.dbzoo.com/livebox/hah_plugboard#implementation

are no more available (obviously since a new version of lua).

Is there any workarround how to easily access the xap cache now?

Member for

15 years 7 months

garrydwilms

15 years 1 month ago

I think Brett is best to answer this one, but i know he did write a xapcachewebserver applet and i think its in the samples folder. Search this forum for it.

Not sure if its of any use but you may be able to either mod the applet or write a http request in to your script to poll from it?

like I say, I think you need Brett's expertise on this one.

 

Garry

Member for

16 years 10 months

brett

15 years 1 month ago

I deprecated them as they required that EVERY xap message was cached.  This is really bad idea on an embedded device with limited memory.  If you require caching write your own caching routines for just the data you need.

There are many snippets around that show how this is done in /etc_ro_fs/plugboard/sample you'll find the sample caching scripts that Gary was talking about however this is probably more complex than you need it should show you how such a thing might be written.

Brett