phpBB API Documentation
Class

acm_memory

class acm_memory

ACM Abstract Memory Class

Properties

$key_prefix
$vars
$is_modified
$sql_rowset
$sql_row_pointer
$cache_dir

Methods

acm_memory()

Set cache path

load()

Load global cache

unload()

Unload cache object

save()

Save modified objects

tidy()

Tidy cache

get($var_name)

Get saved cache object

put($var_name, $var, $ttl = 2592000)

Put data into cache

purge()

Purge cache data

destroy($var_name, $table = '')

Destroy cache data

_exists($var_name)

Check if a given cache entry exist

sql_load($query)

Load cached sql query

sql_save($query, $query_result, $ttl)

Save sql query

sql_exists($query_id)

Ceck if a given sql query exist in cache

sql_fetchrow($query_id)

Fetch row from cache (database)

sql_fetchfield($query_id, $field)

Fetch a field from the current row of a cached database result (database)

sql_rowseek($rownum, $query_id)

Seek a specific row in an a cached database result (database)

sql_freeresult($query_id)

Free memory used for a cached database result (database)

remove_file($filename, $check = false)

Removes/unlinks file

bool _isset(string $var)

Check if a cache var exists

Details

at line 37
public acm_memory()

Set cache path

at line 62
public load()

Load global cache

at line 78
public unload()

Unload cache object

at line 93
public save()

Save modified objects

at line 108
public tidy()

Tidy cache

at line 118
public get($var_name)

Get saved cache object

Parameters

$var_name

at line 138
public put($var_name, $var, $ttl = 2592000)

Put data into cache

Parameters

$var_name
$var
$ttl

at line 154
public purge()

Purge cache data

at line 190
public destroy($var_name, $table = '')

Destroy cache data

Parameters

$var_name
$table

at line 244
public _exists($var_name)

Check if a given cache entry exist

Parameters

$var_name

at line 264
public sql_load($query)

Load cached sql query

Parameters

$query

at line 284
public sql_save($query, $query_result, $ttl)

Save sql query

Parameters

$query
$query_result
$ttl

at line 356
public sql_exists($query_id)

Ceck if a given sql query exist in cache

Parameters

$query_id

at line 364
public sql_fetchrow($query_id)

Fetch row from cache (database)

Parameters

$query_id

at line 377
public sql_fetchfield($query_id, $field)

Fetch a field from the current row of a cached database result (database)

Parameters

$query_id
$field

at line 390
public sql_rowseek($rownum, $query_id)

Seek a specific row in an a cached database result (database)

Parameters

$rownum
$query_id

at line 404
public sql_freeresult($query_id)

Free memory used for a cached database result (database)

Parameters

$query_id

at line 420
public remove_file($filename, $check = false)

Removes/unlinks file

Parameters

$filename
$check

at line 444
public bool _isset(string $var)

Check if a cache var exists

Parameters

string $var Cache key

Return Value

bool True if it exists, otherwise false