|
Stud.IP
jlu_3.3 Revision
|


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