1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

Lets follow some PHP4 conventions underscores for internal methods.

git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9536 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Chris Smith
2009-06-04 14:34:07 +00:00
parent 43f19387ff
commit aec3a498de
3 changed files with 75 additions and 18 deletions

View File

@@ -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);
}