Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
StudipCache Interface Reference
Inheritance diagram for StudipCache:
Inheritance graph
Collaboration diagram for StudipCache:
Collaboration graph

Public Member Functions

 expire ($arg)
 read ($arg)
 write ($name, $content, $expire=43200)

Member Function Documentation

expire (   $arg)

Expire item from the cache.

Example:

expires foo

$cache->expire('foo');

Parameters
stringa single key.
Returns
void

Implemented in StudipFileCache, and StudipNullCache.

read (   $arg)

Retrieve item from the server.

Example:

reads foo

$foo = $cache->reads('foo');

Parameters
stringa single key
Returns
mixed the previously stored data if an item with such a key exists on the server or FALSE on failure.

Implemented in StudipFileCache, and StudipNullCache.

write (   $name,
  $content,
  $expire = 43200 
)

Store data at the server.

Parameters
stringthe item's key.
stringthe item's content.
intthe item's expiry time in seconds. Defaults to 12h.
Returns
mixed returns TRUE on success or FALSE on failure.

Implemented in StudipFileCache, and StudipNullCache.


The documentation for this interface was generated from the following file: