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
630 B

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