1: <?php
2:
3:
4: /**
5: * No-op cache provider: No caching at all.
6: * Use it to disable caching support.
7: */
8: class QCacheProviderNoCache extends QAbstractCacheProvider {
9: /**
10: * Get the object that has the given key from the cache
11: * @param string $strKey the key of the object in the cache
12: * @return object
13: */
14: public function Get($strKey) {
15: return false;
16: }
17:
18: /**
19: * Set the object into the cache with the given key
20: * @param string $strKey the key to use for the object
21: * @param object $objValue the object to put in the cache
22: * @return void
23: */
24: public function Set($strKey, $objValue) {
25: // do nothing
26: }
27:
28: /**
29: * Delete the object that has the given key from the cache
30: * @param string $strKey the key of the object in the cache
31: * @return void
32: */
33: public function Delete($strKey) {
34: // do nothing
35: }
36:
37: /**
38: * Invalidate all the objects in the cache
39: * @return void
40: */
41: public function DeleteAll() {
42: // do nothing
43: }
44: }