ILIAS  release_7 Revision v7.30-3-g800a261c036
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 public 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}
An exception for terminatinating execution or to throw for unit testing.
Cache class.
setExpiresAfter($a_val)
Set expires after x seconds.
Example cache class.
__construct()
Constructor.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc