NVBIO
|
LRU cache. The template parameter CacheManager should supply the following interface:
bool acquire(const uint32 item); try to acquire/load an element, returning false in case of failure: the latter will trigger a cache release cycle.
void release(const uint32 item); release an element, freeing any of the relative resources.
bool low_watermark() const return true when the cache usage is below the low-watermark
#include <cache.h>