On Fri, 15 Jul 2005 15:37:10 +0200 Jon wrote:
JNL> I have another question: I'd like to control when the cache is flushed.
JNL> If I set the following cache flags the cache will never be flushed, right?
JNL>
JNL> NETSNMP_CACHE_DONT_FREE_BEFORE_LOAD
JNL> NETSNMP_CACHE_DONT_FREE_EXPIRED NETSNMP_CACHE_DONT_AUTO_RELEASE
Yep.
JNL> But how do I flush the cache manually?
Good question. I'll make sure to add an API to do this for the next release.
If you look in the interface file, at _cache_free and _cache_item_free, you'll
get the basic idea. Go through the container and release any memory you
allocated, then let the MFD code do the same for memory it allocated.
--
NOTE: messages sent directly to me, instead of the lists, will be deleted
unless they are requests for paid consulting services.
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>
You are lost in a twisty maze of little standards, all different.
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders