ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
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
4
include_once(
"./Services/Cache/classes/class.ilCache.php"
);
5
15
class
ilExampleCache
extends
ilCache
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
}
ilExampleCache
Example cache class.
Definition:
class.ilExampleCache.php:15
ilCache
Cache class.
Definition:
class.ilCache.php:18
php
ilCache\setExpiresAfter
setExpiresAfter($a_val)
Set expires after x seconds.
Definition:
class.ilCache.php:109
ilExampleCache\__construct
__construct()
Constructor.
Definition:
class.ilExampleCache.php:23
Services
Cache
classes
class.ilExampleCache.php
Generated on Thu Feb 27 2025 19:01:53 for ILIAS by
1.8.13 (using
Doxyfile
)