libcache

Description

This is library that implements a cache using my fib and btree libraries. You must have both of the libraries installed in order to use this library.

The library uses the B-tree to store data and look it up. It also maintains a fibonacci heap to keep track of the least used elements.

Download

Source for version 1.0 of the libcache package.

Usage and Details

libcache is not a very complex library to use. It takes data as the opaque data type of c_data_t (which is just a void *). A compare function taking two c_data_t's and returning an int is required to keep the btree in order.