Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino
Move the cache functions out of cache.c and into each data type's header file as inline functions.