[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/includes/acm/ -> acm_file.php (summary)

(no description)

Copyright: (c) 2005, 2009 phpBB Group
License: http://opensource.org/licenses/gpl-license.php GNU Public License
Version: $Id$
File Size: 732 lines (14 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

acm:: (20 methods):
  acm()
  load()
  unload()
  save()
  tidy()
  get()
  put()
  purge()
  destroy()
  _exists()
  sql_load()
  sql_save()
  sql_exists()
  sql_fetchrow()
  sql_fetchfield()
  sql_rowseek()
  sql_freeresult()
  _read()
  _write()
  remove_file()


Class: acm  - X-Ref

ACM File Based Caching

acm()   X-Ref
Set cache path


load()   X-Ref
Load global cache


unload()   X-Ref
Unload cache object


save()   X-Ref
Save modified objects


tidy()   X-Ref
Tidy cache


get($var_name)   X-Ref
Get saved cache object


put($var_name, $var, $ttl = 31536000)   X-Ref
Put data into cache


purge()   X-Ref
Purge cache data


destroy($var_name, $table = '')   X-Ref
Destroy cache data


_exists($var_name)   X-Ref
Check if a given cache entry exist


sql_load($query)   X-Ref
Load cached sql query


sql_save($query, &$query_result, $ttl)   X-Ref
Save sql query


sql_exists($query_id)   X-Ref
Ceck if a given sql query exist in cache


sql_fetchrow($query_id)   X-Ref
Fetch row from cache (database)


sql_fetchfield($query_id, $field)   X-Ref
Fetch a field from the current row of a cached database result (database)


sql_rowseek($rownum, $query_id)   X-Ref
Seek a specific row in an a cached database result (database)


sql_freeresult($query_id)   X-Ref
Free memory used for a cached database result (database)


_read($filename)   X-Ref
Read cached data from a specified file

param: string $filename Filename to write
return: mixed False if an error was encountered, otherwise the data type of the cached data

_write($filename, $data = null, $expires = 0, $query = '')   X-Ref
Write cache data to a specified file

'data_global' is a special case and the generated format is different for this file:
<code>
<?php exit; ?>
(expiration)
(length of var and serialised data)
(var)
(serialised data)
... (repeat)
</code>

The other files have a similar format:
<code>
<?php exit; ?>
(expiration)
(query) [SQL files only]
(length of serialised data)
(serialised data)
</code>

param: string $filename Filename to write
param: mixed $data Data to store
param: int $expires Timestamp when the data expires
param: string $query Query when caching SQL queries
return: bool True if the file was successfully created, otherwise false

remove_file($filename, $check = false)   X-Ref
Removes/unlinks file




Generated: Wed Oct 2 15:03:47 2013 Cross-referenced by PHPXref 0.7.1