ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilExampleCache.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4include_once("./Services/Cache/classes/class.ilCache.php");
5
16{
23 function __construct()
24 {
25 parent::__construct("ServicesCache", "Example", false);
26 $this->setExpiresAfter(5); // only five seconds to make a hit
27 // usually you would this value from some setting
28 }
29}
30?>
Cache class.
setExpiresAfter($a_val)
Set expires after x seconds.
Example cache class.
__construct()
Constructor.