#ifndef CACHE_H #define CACHE_H #include #include /** * \file cache.h * \brief cache related structures and functions * \details * - We store the metadata and the actual data separately in two * separate folders. */ /** * \brief Type definition for a cache segment */ typedef uint8_t Seg; /** * \brief cache in-memory data structure */ typedef struct { char *p_url; /**< the filename from the http server */ long time; /**