Stud.IP
4.2 Revision
|
Public Member Functions | |
expire ($arg) | |
flush () | |
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 StudipFileCache, StudipCacheProxy, StudipNullCache, and StudipDbCache.
flush | ( | ) |
Expire all items from the cache.
Implemented in StudipFileCache, StudipCacheProxy, StudipNullCache, and StudipDbCache.
read | ( | $arg | ) |
Retrieve item from the server.
Example:
$foo = $cache->reads('foo');
string | $arg | a single key |
Implemented in StudipFileCache, StudipCacheProxy, StudipDbCache, and StudipNullCache.
write | ( | $name, | |
$content, | |||
$expires = self::DEFAULT_EXPIRATION |
|||
) |
Store data at the server.
string | $name | the item's key. |
mixed | $content | the item's content (will be serialized if necessary). |
int | $expired | the item's expiry time in seconds. Optional, defaults to 12h. |
Implemented in StudipFileCache, StudipCacheProxy, StudipDbCache, and StudipNullCache.
const DEFAULT_EXPIRATION = 43200 |