Missing entry in "Implementation" section

Hi Brett, Derek

I'm still upto my forhead wrinkles in LUA scripts.  I've noticed in your examples a function called recent_cache.

There's no mention of this function in the Implementation list, this maybe becuase it is not a C function?

It would still be usefull to have it doc'd...it seems to work similarly to xapcache_find?

 

Cheers

Gary

Member for

16 years 10 months

brett

16 years 4 months ago

If you look really closely at that example you'll see that "recent_cache" is an LUA function that has been crafted.

http://www.dbzoo.com/livebox/hah_plugboard#cache_access

The problem I was solving was that it's possible that the an "EVENT" for my xap ENDPOINT hasn't been logged to the LUA cache yet.  Events are more preferable as they are the most recent data value.  However an INFO message will be sent every 2 mins with the ENDPOINT current state even if it hasn't change.  So I then fallback to using that instead.

Brett