ChipMaster's trial hacks on C++CMS starting with v1.2.1. Not sure I'll follow on with the v2 since it looks to be breaking and mostly frivolous.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
566 B

  1. #ifndef BASE_CACHE_H
  2. #define BASE_CACHE_H
  3. #include <string>
  4. #include <set>
  5. #include "archive.h"
  6. namespace cppcms {
  7. using namespace std;
  8. class base_cache {
  9. public:
  10. virtual bool fetch_page(string const &key,string &output,bool gzip);
  11. virtual bool fetch(string const &key,archive &a,set<string> &tags);
  12. virtual void rise(string const &trigger);
  13. virtual void clear();
  14. virtual void store(string const &key,set<string> const &triggers,time_t timeout,archive const &a);
  15. virtual void stats(unsigned &keys,unsigned &triggers);
  16. virtual ~base_cache();
  17. };
  18. }
  19. #endif