| 
    Stud.IP
    trunk 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, and StudipNullCache.
| flush | ( | ) | 
Expire all items from the cache.
Implemented in StudipFileCache, and StudipNullCache.
| read | ( | $arg | ) | 
Retrieve item from the server.
Example:
$foo = $cache->reads('foo');
| string | $arg | a single key | 
Implemented in StudipFileCache, 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, and StudipNullCache.
| const DEFAULT_EXPIRATION = 43200 |