| author | indvdum (gotoindvdum[at]gmail[dot]com) |
| Sat, 10 Mar 2012 00:18:56 +0400 | |
| changeset 15 | 8804e4d3de74 |
| parent 0 | ceef6d64c21d |
| permissions | -rw-r--r-- |
1 <?php
2 /**
3 *
4 * @package acm
5 * @version $Id$
6 * @copyright (c) 2005, 2009 phpBB Group
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
8 *
9 */
11 /**
12 * @ignore
13 */
14 if (!defined('IN_PHPBB'))
15 {
16 exit;
17 }
19 /**
20 * ACM Null Caching
21 * @package acm
22 */
23 class acm
24 {
25 /**
26 * Set cache path
27 */
28 function acm()
29 {
30 }
32 /**
33 * Load global cache
34 */
35 function load()
36 {
37 return true;
38 }
40 /**
41 * Unload cache object
42 */
43 function unload()
44 {
45 }
47 /**
48 * Save modified objects
49 */
50 function save()
51 {
52 }
54 /**
55 * Tidy cache
56 */
57 function tidy()
58 {
59 // This cache always has a tidy room.
60 set_config('cache_last_gc', time(), true);
61 }
63 /**
64 * Get saved cache object
65 */
66 function get($var_name)
67 {
68 return false;
69 }
71 /**
72 * Put data into cache
73 */
74 function put($var_name, $var, $ttl = 0)
75 {
76 }
78 /**
79 * Purge cache data
80 */
81 function purge()
82 {
83 }
85 /**
86 * Destroy cache data
87 */
88 function destroy($var_name, $table = '')
89 {
90 }
92 /**
93 * Check if a given cache entry exist
94 */
95 function _exists($var_name)
96 {
97 return false;
98 }
100 /**
101 * Load cached sql query
102 */
103 function sql_load($query)
104 {
105 return false;
106 }
108 /**
109 * Save sql query
110 */
111 function sql_save($query, &$query_result, $ttl)
112 {
113 }
115 /**
116 * Ceck if a given sql query exist in cache
117 */
118 function sql_exists($query_id)
119 {
120 return false;
121 }
123 /**
124 * Fetch row from cache (database)
125 */
126 function sql_fetchrow($query_id)
127 {
128 return false;
129 }
131 /**
132 * Fetch a field from the current row of a cached database result (database)
133 */
134 function sql_fetchfield($query_id, $field)
135 {
136 return false;
137 }
139 /**
140 * Seek a specific row in an a cached database result (database)
141 */
142 function sql_rowseek($rownum, $query_id)
143 {
144 return false;
145 }
147 /**
148 * Free memory used for a cached database result (database)
149 */
150 function sql_freeresult($query_id)
151 {
152 return false;
153 }
154 }
156 ?>