4 struct cache *cache_new(int id_size, int size);
5 void *cache_entry_new(struct cache *cache, void *id, int size);
6 void cache_entry_destroy(struct cache *cache, void *data);
7 void *cache_lookup(struct cache *cache, void *id);
8 void cache_insert(struct cache *cache, void *data);
9 void *cache_insert_new(struct cache *cache, void *id, int size);
10 void cache_flush(struct cache *cache, void *id);
11 void cache_dump(struct cache *cache);
12 void cache_flush_data(struct cache *cache, void *data);
13 /* end of prototypes */