Moodle  2.2.1
http://www.collinsharper.com
Minify_Cache_APC Class Reference

Public Member Functions

 __construct ($expire=0)
 store ($id, $data)
 getSize ($id)
 isValid ($id, $srcMtime)
 display ($id)
 fetch ($id)

Detailed Description

Definition at line 17 of file APC.php.


Constructor & Destructor Documentation

__construct ( expire = 0)

Create a Minify_Cache_APC object, to be passed to Minify::setCache().

Parameters:
int$expireseconds until expiration (default = 0 meaning the item will not get an expiration date)
Returns:
null

Definition at line 29 of file APC.php.


Member Function Documentation

display ( id)

Send the cached content to output

Parameters:
string$idcache id

Definition at line 81 of file APC.php.

fetch ( id)

Fetch the cached content

Parameters:
string$idcache id
Returns:
string

Definition at line 95 of file APC.php.

getSize ( id)

Get the size of a cache entry

Parameters:
string$idcache id
Returns:
int size in bytes

Definition at line 55 of file APC.php.

isValid ( id,
srcMtime 
)

Does a valid cache entry exist?

Parameters:
string$idcache id
int$srcMtimemtime of the original source file(s)
Returns:
bool exists

Definition at line 71 of file APC.php.

store ( id,
data 
)

Write data to cache.

Parameters:
string$idcache id
string$data
Returns:
bool success

Definition at line 43 of file APC.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations