CachePolicy.cpp
Go to the documentation of this file.
1 #include <NovaDAQUtilities/CachePolicy.h>
2 
3 namespace novadaq {
4 
5 /**
6  * Tells the policy that a cache update was done. This is used to
7  * reset the state of the policy to "unexpired" after an update.
8  */
11 }
12 
13 /**
14  * Tests if the associated cache has expired based on the criteria
15  * in the policy.
16  *
17  * @returns true if the cache has expired, false if not.
18  */
20  return _checkIfExpired();
21 }
22 
23 /**
24  * Tells the policy that a cache update was done. This is used to
25  * reset the state of the policy to "unexpired" after an update.
26  */
28  // don't need to keep track of when the cache was updated since we
29  // never expire in this simple implementation
30 }
31 
32 /**
33  * Tests if the associated cache has expired based on the criteria
34  * in the policy.
35  *
36  * @returns true if the cache has expired, false if not.
37  */
39  return false;
40 }
41 
42 } // end of namespace novadaq
virtual bool _checkIfExpired()
Definition: CachePolicy.cpp:38
virtual void _markAsUpdated()
Definition: CachePolicy.cpp:27