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.
 
 
 
 
 
 

35 lines
1.0 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (C) 2008-2012 Artyom Beilis (Tonkikh) <artyomtnk@yahoo.com>
  4. //
  5. // See accompanying file COPYING.TXT file for licensing details.
  6. //
  7. ///////////////////////////////////////////////////////////////////////////////
  8. #ifndef CPPCMS_CACHE_POOL_H
  9. #define CPPCMS_CACHE_POOL_H
  10. #include <cppcms/defs.h>
  11. #include <booster/noncopyable.h>
  12. #include <booster/intrusive_ptr.h>
  13. #include <booster/hold_ptr.h>
  14. #include <cppcms/base_cache_fwd.h>
  15. namespace cppcms {
  16. namespace json { class value; }
  17. namespace impl { class base_cache; }
  18. /// \cond INTERNAL
  19. class CPPCMS_API cache_pool {
  20. public:
  21. cache_pool(json::value const &settings);
  22. ~cache_pool();
  23. booster::intrusive_ptr<impl::base_cache> get();
  24. private:
  25. struct _data;
  26. booster::hold_ptr<_data> d;
  27. };
  28. /// \endcond
  29. }
  30. #endif