IP.Board  3.3.0
Minify_Cache_APC Class Reference

Public Member Functions

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

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

Member Function Documentation

display ( id)

Send the cached content to output

Parameters:
string$idcache id
fetch ( id)

Fetch the cached content

Parameters:
string$idcache id
Returns:
string
getSize ( id)

Get the size of a cache entry

Parameters:
string$idcache id
Returns:
int size in bytes
isValid ( id,
srcMtime 
)

Does a valid cache entry exist?

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

Write data to cache.

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

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