CppCMS
|
triggers_recorder is a class that allows you to record all triggers added in certain scope. More...
#include <cppcms/cache_interface.h>
Public Member Functions | |
triggers_recorder (cache_interface &) | |
~triggers_recorder () | |
std::set< std::string > | detach () |
Friends | |
class | cache_interface |
triggers_recorder is a class that allows you to record all triggers added in certain scope.
It is useful to have have "sub-dependencies" for smaller parts.
For example:
So tag "politics" records all added triggers like "article_234" and now rise of "article_234" would invalidate "politics" section as well as we automatically record all triggers inserted in triggers_recorder scope.
cppcms::triggers_recorder::triggers_recorder | ( | cache_interface & | ) |
Start recording all triggers
cppcms::triggers_recorder::~triggers_recorder | ( | ) |
Stop recording triggers
std::set<std::string> cppcms::triggers_recorder::detach | ( | ) |
Stop recording triggers and get the set of all triggers being added in its scope