[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/minify/lib/Minify/Cache/ -> XCache.php (summary)

Class Minify_Cache_XCache

File Size: 126 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Minify_Cache_XCache:: (7 methods):
  __construct()
  store()
  getSize()
  isValid()
  display()
  fetch()
  _fetch()


Class: Minify_Cache_XCache  - X-Ref

XCache-based cache class for Minify
{@see http://xcache.lighttpd.net/wiki/XcacheApi XCache API}

<code>
Minify::setCache(new Minify_Cache_XCache());
</code>

__construct($expire = 0)   X-Ref
Create a Minify_Cache_XCache object, to be passed to
Minify::setCache().

param: int $expire seconds until expiration (default = 0

store($id, $data)   X-Ref
Write data to cache.

param: string $id cache id
param: string $data
return: bool success

getSize($id)   X-Ref
Get the size of a cache entry

param: string $id cache id
return: int size in bytes

isValid($id, $srcMtime)   X-Ref
Does a valid cache entry exist?

param: string $id cache id
param: int $srcMtime mtime of the original source file(s)
return: bool exists

display($id)   X-Ref
Send the cached content to output

param: string $id cache id

fetch($id)   X-Ref
Fetch the cached content

param: string $id cache id
return: string

_fetch($id)   X-Ref
Fetch data and timestamp from xcache, store in instance

param: string $id
return: bool success



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1