|
Stud.IP
2.4 Revision 48548
|


Public Member Functions | |
| expire ($arg) | |
| read ($arg) | |
| write ($name, $content, $expire=43200) | |
| expire | ( | $arg | ) |
Expire item from the cache.
Example:
$cache->expire('foo');
| string | a single key. |
Implemented in StudipFileCache, and StudipNullCache.
| read | ( | $arg | ) |
Retrieve item from the server.
Example:
$foo = $cache->reads('foo');
| string | a single key |
Implemented in StudipFileCache, and StudipNullCache.
| write | ( | $name, | |
| $content, | |||
$expire = 43200 |
|||
| ) |
Store data at the server.
| string | the item's key. |
| string | the item's content. |
| int | the item's expiry time in seconds. Defaults to 12h. |
Implemented in StudipFileCache, and StudipNullCache.