aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acm/acm_apc.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/acm/acm_apc.php')
-rw-r--r--phpBB/includes/acm/acm_apc.php31
1 files changed, 28 insertions, 3 deletions
diff --git a/phpBB/includes/acm/acm_apc.php b/phpBB/includes/acm/acm_apc.php
index 409854bc26..cbda86bec0 100644
--- a/phpBB/includes/acm/acm_apc.php
+++ b/phpBB/includes/acm/acm_apc.php
@@ -36,6 +36,8 @@ class acm extends acm_memory
/**
* Purge cache data
+ *
+ * @return void
*/
function purge()
{
@@ -44,17 +46,40 @@ class acm extends acm_memory
parent::purge();
}
- function read($var)
+ /**
+ * Fetch an item from the cache
+ *
+ * @access protected
+ * @param string $var Cache key
+ * @return mixed Cached data
+ */
+ function _read($var)
{
return apc_fetch($var);
}
- function write($var, $data, $ttl = 2592000)
+ /**
+ * Store data in the cache
+ *
+ * @access protected
+ * @param string $var Cache key
+ * @param mixed $data Data to store
+ * @param int $ttl Time-to-live of cached data
+ * @return bool True if the operation succeeded
+ */
+ function _write($var, $data, $ttl = 2592000)
{
return apc_store($var, $data, $ttl);
}
- function delete($var)
+ /**
+ * Remove an item from the cache
+ *
+ * @access protected
+ * @param string $var Cache key
+ * @return bool True if the operation succeeded
+ */
+ function _delete($var)
{
return apc_delete($var);
}