#ifndef CACHE_H #define CACHE_H #include #include #include "bu/archival.h" #include #include #include class Cache : public Bu::Archival { public: Cache(); virtual ~Cache(); virtual void archive( class Bu::ArchiveBase &ar ); class Entry { public: uint32_t tCreated; std::list lData; }; Entry *get( const std::string &id ); void put( const std::string &id, Entry *data ); private: std::map mCache; }; #endif