TimedCachePolicy.h
Go to the documentation of this file.
1 #ifndef _NOVADAQ_TIMEDCACHEPOLICY_H
2 #define _NOVADAQ_TIMEDCACHEPOLICY_H
3 
4 #include <NovaDAQUtilities/CachePolicy.h>
5 #include <time.h>
6 
7 namespace novadaq {
8 
9 /**
10  * A cache expiration policy based on a time interval.
11  *
12  * @author Kurt Biery
13  * @version $Revision: 1.2.34.1 $ $Date: 2019/09/27 00:07:20 $
14  */
15 
17 
18  public:
19 
20  explicit TimedCachePolicy(int timeoutInMinutes);
21 
23 
24  protected:
25 
26  void _markAsUpdated();
27 
28  bool _checkIfExpired();
29 
30  private:
31 
34 
35 };
36 
37 } // end of namespace novadaq
38 
39 #endif
TimedCachePolicy(int timeoutInMinutes)